aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/user.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/api/user.go b/api/user.go
index 4d4edba..1dc69e4 100644
--- a/api/user.go
+++ b/api/user.go
@@ -100,10 +100,6 @@ func (q SigninQuery) Run() (interface{}, *Error) {
100 return nil, &Error{InvalidCredentials, "invalid credentials", err} 100 return nil, &Error{InvalidCredentials, "invalid credentials", err}
101 } 101 }
102 102
103 if user.Status != db.Confirmed {
104 return nil, &Error{UserNotConfirmed, "user awaiting admin validation", fmt.Errorf("user '%v' not confirmed", user)}
105 }
106
107 token, err := CreateJwtToken(user.Id) 103 token, err := CreateJwtToken(user.Id)
108 if err != nil { 104 if err != nil {
109 return nil, NewInternalError(err) 105 return nil, NewInternalError(err)