summaryrefslogtreecommitdiffstats
path: root/templates/install.tmpl
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-02-16 22:37:20 +0000
committerGitHub <noreply@github.com>2021-02-16 23:37:20 +0100
commitad43b119a847fbb05d22caefa2602696773bb229 (patch)
treeac8d2f71ef6fa23a41e93236f673d59f96aee48f /templates/install.tmpl
parent66a148e398c3c944e2b79187c09ef0bb7bdfdd5e (diff)
downloadgitea-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 'templates/install.tmpl')
-rw-r--r--templates/install.tmpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/install.tmpl b/templates/install.tmpl
index 62aaeaed9a..249a3a7c4a 100644
--- a/templates/install.tmpl
+++ b/templates/install.tmpl
@@ -267,6 +267,20 @@
<input id="_no_reply_address" name="no_reply_address" value="{{.no_reply_address}}">
<span class="help">{{.i18n.Tr "install.no_reply_address_helper"}}</span>
</div>
+ <div class="inline field">
+ <label for="password_algorithm">{{.i18n.Tr "install.password_algorithm"}}</label>
+ <div class="ui selection dropdown">
+ <input id="password_algorithm" type="hidden" name="password_algorithm" value="{{.password_algorithm}}">
+ <div class="text">{{.password_algorithm}}</div>
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+ <div class="menu">
+ {{range .PasswordHashAlgorithms}}
+ <div class="item" data-value="{{.}}">{{.}}</div>
+ {{end}}
+ </div>
+ </div>
+ <span class="help">{{.i18n.Tr "install.password_algorithm_helper"}}</span>
+ </div>
</div>
</div>