]> git.ipfire.org Git - ipfire.org.git/commitdiff
passwd: Ask for old password first and then the new ones
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 17 Oct 2018 10:51:01 +0000 (11:51 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 17 Oct 2018 15:12:45 +0000 (16:12 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/people/passwd.html

index 43dec88573eb2fff522c94d582375d604250180d..5c072ea4f1a67e1c432400dd64ad5dde3c0fee1d 100644 (file)
                        <form method="POST" action="">
                                {% raw xsrf_form_html() %}
 
+                               <div class="form-group">
+                                       <label>{{ _("Current Password") }}</label>
+
+                                       <input type="password" class="form-control" name="password"
+                                               placeholder="{{ _("Current Password") }}">
+                               </div>
+
                                <fieldset>
                                        <div class="form-group">
                                                <label>{{ _("New Password") }}</label>
                                        </div>
                                </fieldset>
 
-                               <div class="form-group">
-                                       <label>{{ _("Current Password") }}</label>
-
-                                       <input type="password" class="form-control" name="password"
-                                               placeholder="{{ _("Current Password") }}">
-                               </div>
-
                                <input class="btn btn-primary btn-block" type="submit" value="{{ _("Change Password") }}">
                        </form>
                </div>