docs(example): add auth time (#700)
This commit is contained in:
parent
c3c1bd3a40
commit
03e5ff8345
1 changed files with 3 additions and 0 deletions
|
@ -151,6 +151,9 @@ func (s *Storage) CheckUsernamePassword(username, password, id string) error {
|
|||
// in this example we'll simply check the username / password and set a boolean to true
|
||||
// therefore we will also just check this boolean if the request / login has been finished
|
||||
request.done = true
|
||||
|
||||
request.authTime = time.Now()
|
||||
|
||||
return nil
|
||||
}
|
||||
return fmt.Errorf("username or password wrong")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue