mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-29 08:54:09 +09:00
Ask for the current password to change it
Changing the password now ends every other session, so whoever holds
one could shut the owner out of their own account with a new password.
The profile asks for the current password whenever the password
changes; without it, or with a wrong one, nothing is saved and the page
says why. Other profile edits don't need it, and the admin
reset-password script still works without it.
Attempts are rate limited like signing in, 10 in 3 minutes per address,
so the current password can't be guessed here instead.
From #371. The cached-response test it touches isn't in 1.5.2.
(cherry picked from commit 44a92ff6c6)
This commit is contained in:
1 parent
58a25c6281
commit
417f087964
6 files changed
+133
-9
No files matched your search
@@ -69,6 +69,16 @@
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="flex align-center gap">
|
||||
<%= translation_button(:current_password) %>
|
||||
|
||||
<label class="flex align-center gap flex-item-grow input input--actor">
|
||||
<%= form.password_field :password_challenge, class: "input txt-large", autocomplete: "current-password",
|
||||
placeholder: "Current password", required: false, maxlength: 72 %>
|
||||
<%= image_tag "password.svg", aria: { hidden: "true" }, size: 24, class: "colorize--black" %>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="flex align-center gap">
|
||||
<%= translation_button(:update_password) %>
|
||||
|
||||
|
||||
Reference in new issue
Block a user