summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-05-15 13:31:11 -0300
committerEuAndreh <eu@euandre.org>2025-05-15 13:31:11 -0300
commitbce8179d4ee6f1d97c9928e38d56ca053302284d (patch)
tree0f21abaea0080c1d5904eda21eb506a8ad6c3d7f /src
parentMake: Use $< over $? (diff)
downloadcracha-bce8179d4ee6f1d97c9928e38d56ca053302284d.tar.gz
cracha-bce8179d4ee6f1d97c9928e38d56ca053302284d.tar.xz
src/cracha.go: Update scrypt.HashInput -> scrypt.HashInputT
Diffstat (limited to '')
-rw-r--r--src/cracha.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cracha.go b/src/cracha.go
index c162e96..ae0a866 100644
--- a/src/cracha.go
+++ b/src/cracha.go
@@ -113,7 +113,7 @@ type authT struct{
queue fiinha.IQueue
db *sql.DB
queries queriesT
- hasher func(scrypt.HashInput) ([]byte, error)
+ hasher func(scrypt.HashInputT) ([]byte, error)
close func()
}
@@ -1371,7 +1371,7 @@ func (auth authT) Register(
return User{}, err
}
- input := scrypt.HashInput{
+ input := scrypt.HashInputT{
Password: []byte(password),
Salt: salt,
}
@@ -1484,7 +1484,7 @@ func (auth authT) LoginEmail(
return Session{}, err
}
- input := scrypt.HashInput{
+ input := scrypt.HashInputT{
Password: []byte(password),
Salt: user.salt,
}
@@ -1602,7 +1602,7 @@ func (auth authT) ResetPassword(
user := userT{}
- input := scrypt.HashInput{
+ input := scrypt.HashInputT{
Password: []byte(password),
Salt: user.salt,
}
@@ -1650,7 +1650,7 @@ func (auth authT) ChangePassword(
return Session{}, err
}
- input := scrypt.HashInput{
+ input := scrypt.HashInputT{
Password: []byte(newPassword),
Salt: user.salt,
}