diff options
author | Struan Donald <struan@exo.org.uk> | 2018-04-19 15:58:02 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2018-06-25 10:12:25 +0100 |
commit | 7c009ce048fbe36db24dd1a24f3542503db2e898 (patch) | |
tree | dba5f5e7d0b4bab9a5d3565781fe1bbd12aff807 /templates/web/base/admin/user-form.html | |
parent | 43ef59400d632c3c29321c6908128932a31148a7 (diff) |
add a send login email button to user edit page
Add a button to the user edit page that sends a login token email to the
user. Helpful for user support situations where someone is having
trouble logging in. Also for situations where you have added a user and
want to get them logged in.
Fixes #2041
Diffstat (limited to 'templates/web/base/admin/user-form.html')
-rw-r--r-- | templates/web/base/admin/user-form.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/web/base/admin/user-form.html b/templates/web/base/admin/user-form.html index e8e647a09..bb8511726 100644 --- a/templates/web/base/admin/user-form.html +++ b/templates/web/base/admin/user-form.html @@ -17,7 +17,11 @@ <input type='text' class="form-control" name='name' id='name' value='[% user.name | html %]'> </li> <li><label for="email">[% loc('Email:') %]</label> - <input type='text' class="form-control" id='email' name='email' value='[% user.email | html %]'></li> + <input type='text' class="form-control" id='email' name='email' value='[% user.email | html %]'> + [% IF user %] + <input class="btn" type="submit" name="send_login_email" value="[% loc('Send login email') %]"> + [% END %] + </li> <li><label class="inline" for="email_verified">[% loc('Email verified:') %]</label> <input type="checkbox" id="email_verified" name="email_verified" value="1" [% user.email_verified ? ' checked' : '' %]> <li><label for="phone">[% loc('Phone:') %]</label> @@ -190,6 +194,7 @@ <p> <input type="submit" class="btn" name="Submit changes" value="[% loc('Submit changes') %]" > </p> + [% IF user AND NOT user.from_body %] <ul class="no-bullets danger-zone"> <li><input class="btn-danger" type="submit" name="logout_everywhere" value="[% loc('Log out of all sessions') %]"> |