aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjloup <jeanloup.jamet@gmail.com>2018-02-25 21:27:03 +0100
committerjloup <jeanloup.jamet@gmail.com>2018-02-25 21:27:03 +0100
commitb5c34e88bbe09173aca1d1c1014cb42b01866d79 (patch)
tree20a7bb5e1fa14fdc265048413dd85f4d38184f89
parentee902062a71c1ef31176cf5061555618b288b1d4 (diff)
downloadFront-b5c34e88bbe09173aca1d1c1014cb42b01866d79.tar.gz
Front-b5c34e88bbe09173aca1d1c1014cb42b01866d79.tar.zst
Front-b5c34e88bbe09173aca1d1c1014cb42b01866d79.zip
Display user awaiting validation message when user try to relog in.
-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)