Add a success message when security key registered

This makes it clear that there’s nothing more the user needs to do,
until the next time they sign in.
This commit is contained in:
Chris Hill-Scott
2021-06-01 17:07:23 +01:00
parent 6869b299b3
commit 2a62d6dfb8
2 changed files with 9 additions and 0 deletions

View File

@@ -55,6 +55,11 @@ def webauthn_complete_register():
current_user.id, credential
)
flash((
'Registration complete. Next time you sign in to Notify '
'youll be asked to use your security key.'
), 'default_with_tick')
return cbor.encode('')