1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Refactored confirm actions to their own controller

This commit is contained in:
Dan Brown
2019-08-18 10:47:59 +01:00
parent 44330bdd24
commit e5155a5dcb
4 changed files with 134 additions and 91 deletions

View File

@ -27,4 +27,14 @@ class EmailConfirmationService extends UserTokenService
$user->notify(new ConfirmEmail($token));
}
/**
* Check if confirmation is required in this instance.
* @return bool
*/
public function confirmationRequired() : bool
{
return setting('registration-confirmation')
|| setting('registration-restrict');
}
}