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

@@ -22,7 +22,7 @@ users:
flight_time: 43200
created_at: now
updated_at: now
active: 1
state: 1
- id: 2
name: Carla Walters
email: carla.walters68@example.com
@@ -36,7 +36,7 @@ users:
flight_time: 43200
created_at: now
updated_at: now
active: 1
state: 0
- id: 3
name: Raymond Pearson
email: raymond.pearson56@example.com
@@ -50,7 +50,7 @@ users:
flight_time: 43200
created_at: now
updated_at: now
active: 0
state: 1
role_user:
- user_id: 1