Skip to content

Commit

Permalink
add auth time
Browse files Browse the repository at this point in the history
  • Loading branch information
mqf20 committed Jan 27, 2025
1 parent de2fd41 commit bd31a5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example/server/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit bd31a5e

Please sign in to comment.