Don't allow login if user is pending or rejected; some refactoring of the registration code

This commit is contained in:
Nabeel Shahzad
2017-12-22 13:38:24 -06:00
parent 161623c85e
commit 1ebf2bd09c
8 changed files with 119 additions and 16 deletions

View File

@@ -25,11 +25,11 @@ class UserService extends BaseService
public function createPilot(User $user)
{
# Determine if we want to auto accept
if(setting('pilot.auto_accept') === true) {
/*if(setting('pilot.auto_accept') === true) {
$user->state = PilotState::ACTIVE;
} else {
$user->state = PilotState::PENDING;
}
}*/
$user->save();