Skip to content

Commit

Permalink
Verify encrypted password from database
Browse files Browse the repository at this point in the history
  • Loading branch information
supanadit committed Jul 10, 2020
1 parent 127e305 commit a282239
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ func (auth Authorization) VerifyPassword(password string) (bool, error) {
}
return VerifyPassword(ep, password)
}

// VerifyEncryptedPassword is the fastest way to verify encrypted password stored in database
func (auth Authorization) VerifyEncryptedPassword(password string) (bool, error) {
return VerifyPassword(auth.Password, password)
}

0 comments on commit a282239

Please sign in to comment.