This commit is contained in:
ykomissarov committed 2019-05-08 13:06:08 +03:00
1 parent dc5ca4b1c6
commit 24dc1fe615
5 files changed
+63 -62

No files matched your search

+4 -1
View File
@@ -56,7 +56,10 @@ func Login(authRequest structure.AuthRequest) (*structure.Auth, error) {
return nil, status.New(codes.Unauthenticated, "Email or password is incorrect").Err()
}
tokenString, expired := token.GetToken(string(user.Id))
tokenString, expired, err := token.GetToken(string(user.Id))
if err != nil {
return nil, err
}
return &structure.Auth{
Token: tokenString,
Expired: expired,