mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
DEV: Standardize session confirmation prompt (#24212)
Switches to using a dialog to confirm a session (i.e. sudo mode for account changes where we want to be extra sure the current user is who they say they are) to match what we do with passkeys.
This commit is contained in:
@ -9,10 +9,10 @@ module PageObjects
|
||||
end
|
||||
|
||||
def visit_second_factor(password)
|
||||
click_link(class: "btn-second-factor")
|
||||
click_button "Manage Two-Factor Authentication"
|
||||
|
||||
find(".second-factor input#password").fill_in(with: password)
|
||||
find(".second-factor .btn-primary").click
|
||||
find(".dialog-body input#password").fill_in(with: password)
|
||||
find(".dialog-body .btn-primary").click
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user