diff options
author | zeripath <art27@cantab.net> | 2021-02-16 22:37:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 23:37:20 +0100 |
commit | ad43b119a847fbb05d22caefa2602696773bb229 (patch) | |
tree | ac8d2f71ef6fa23a41e93236f673d59f96aee48f /models/user.go | |
parent | 66a148e398c3c944e2b79187c09ef0bb7bdfdd5e (diff) | |
download | gitea-ad43b119a847fbb05d22caefa2602696773bb229.tar.gz gitea-ad43b119a847fbb05d22caefa2602696773bb229.zip |
Add Password Algorithm option to install page (#14701)
Add Password Algorithm option to install page
Fix #14674
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/models/user.go b/models/user.go index 495fed1ff4..8ce9e768f1 100644 --- a/models/user.go +++ b/models/user.go @@ -56,7 +56,17 @@ const ( algoScrypt = "scrypt" algoArgon2 = "argon2" algoPbkdf2 = "pbkdf2" +) + +// AvailableHashAlgorithms represents the available password hashing algorithms +var AvailableHashAlgorithms = []string{ + algoPbkdf2, + algoArgon2, + algoScrypt, + algoBcrypt, +} +const ( // EmailNotificationsEnabled indicates that the user would like to receive all email notifications EmailNotificationsEnabled = "enabled" // EmailNotificationsOnMention indicates that the user would like to be notified via email when mentioned. |