From ad43b119a847fbb05d22caefa2602696773bb229 Mon Sep 17 00:00:00 2001 From: zeripath Date: Tue, 16 Feb 2021 22:37:20 +0000 Subject: Add Password Algorithm option to install page (#14701) Add Password Algorithm option to install page Fix #14674 Co-authored-by: John Olheiser --- models/user.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'models/user.go') 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. -- cgit v1.2.3