Change magic_link_ttl old name to auth_code_ttl
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -29,7 +29,7 @@ func NewAuthCode(email string) (string, error) {
|
||||
|
||||
store.Store(code, Token{
|
||||
Email: email,
|
||||
ExpiresAt: time.Now().Add(viper.GetDuration("ttl.magic_link_ttl")),
|
||||
ExpiresAt: time.Now().Add(viper.GetDuration("ttl.auth_code_ttl")),
|
||||
})
|
||||
|
||||
return code, nil
|
||||
|
||||
Reference in New Issue
Block a user