mirror of
https://github.com/pushbits/server.git
synced 2025-06-11 07:01:57 +02:00
Use gofumpt as code formatter
This commit is contained in:
parent
04e29f04d9
commit
0b8d22d293
12 changed files with 23 additions and 30 deletions
|
@ -20,7 +20,6 @@ func (m *Manager) CreatePasswordHash(password string) ([]byte, error) {
|
|||
}
|
||||
|
||||
hash, err := argon2id.CreateHash(password, m.argon2Params)
|
||||
|
||||
if err != nil {
|
||||
log.L.Fatal(err)
|
||||
panic(err)
|
||||
|
@ -32,7 +31,6 @@ func (m *Manager) CreatePasswordHash(password string) ([]byte, error) {
|
|||
// ComparePassword compares a hashed password with its possible plaintext equivalent.
|
||||
func ComparePassword(hash, password []byte) bool {
|
||||
match, err := argon2id.ComparePasswordAndHash(string(password), string(hash))
|
||||
|
||||
if err != nil {
|
||||
log.L.Fatal(err)
|
||||
return false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue