]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Restoring change password section in config
authorJay Sitter <jsitter@gmail.com>
Mon, 3 Nov 2014 14:11:25 +0000 (09:11 -0500)
committerJay Sitter <jsitter@gmail.com>
Mon, 3 Nov 2014 14:11:25 +0000 (09:11 -0500)
themes/baggy/config.twig

index 3dd382700a98f4096f70b1dfd53807728809c1e9..2fd5ce28758bb856b32a11b8c628d98218116ef8 100755 (executable)
             <p><a href="?empty-cache">{% trans "Delete Cache" %}</a><br>
             <span class="more-info">Deleting the cache may help with display or other problems.</span></p>
 
+            {% if http_auth == 0 %}
+            <h2>{% trans "Change your password" %}</h2>
+            <form method="post" action="?config" name="loginform">
+                <fieldset class="w500p">
+                    <div class="row">
+                        <label class="col w150p" for="password">{% trans "New password:" %}</label>
+                        <input class="col" type="password" id="password" name="password" placeholder="{% trans "Password" %}" tabindex="2">
+                    </div>
+                    <div class="row">
+                        <label class="col w150p" for="password_repeat">{% trans "Repeat your new password:" %}</label>
+                        <input class="col" type="password" id="password_repeat" name="password_repeat" placeholder="{% trans "Password" %}" tabindex="3">
+                    </div>
+                    <div class="row mts txtcenter">
+                        <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button>
+                    </div>
+                </fieldset>
+                <input type="hidden" name="returnurl" value="{{ referer }}">
+                <input type="hidden" name="token" value="{{ token }}">
+            </form>
+            {% endif %}
+
             <h2>{% trans 'Add user' %}</h2>
             <form method="post" action="?newuser">
                 <fieldset class="w500p">