Skip to content
Snippets Groups Projects
Commit eed5c284 authored by Nathanael Santoso's avatar Nathanael Santoso
Browse files

fix(reset): adapt to change

parent 7bdf53a7
Branches
Tags
2 merge requests!35Staging,!26fix: login unverified
Pipeline #53916 passed with stage
in 2 minutes and 33 seconds
...@@ -41,6 +41,8 @@ func (rs ResetServiceImpl) Request(payload request.RequestRequestPayload) error ...@@ -41,6 +41,8 @@ func (rs ResetServiceImpl) Request(payload request.RequestRequestPayload) error
Email: user.Email, Email: user.Email,
Role: user.Role, Role: user.Role,
Type: tokenModel.Access, Type: tokenModel.Access,
IsVerified: user.IsActivated,
RegisteredClaims: jwt.RegisteredClaims{ RegisteredClaims: jwt.RegisteredClaims{
ExpiresAt: jwt.NewNumericDate(time.Now().Add(time.Duration(rs.TokenAccessExpired*6) * time.Millisecond)), ExpiresAt: jwt.NewNumericDate(time.Now().Add(time.Duration(rs.TokenAccessExpired*6) * time.Millisecond)),
Issuer: rs.TokenIssuer, Issuer: rs.TokenIssuer,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment