mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 15:35:57 +03:00
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#529
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/retspen/webvirtcloud/pull/378
Author: @Real-Gecko
Created: 10/19/2020
Status: ✅ Merged
Merged: 10/20/2020
Merged by: @catborise
Base:
master← Head:master📝 Commits (2)
5a19f0cOTP improvements1f26bd0Do not send email if user email is not set📊 Changes
13 files changed (+187 additions, -151 deletions)
View changed files
📝
accounts/forms.py(+5 -1)📝
accounts/templates/account.html(+9 -13)➕
accounts/templates/accounts/email/otp.html(+7 -0)➕
accounts/templates/accounts/email_otp_form.html(+32 -0)📝
accounts/templates/accounts/otp_login.html(+23 -55)➖
accounts/templates/base_auth.html(+0 -41)📝
accounts/templates/login.html(+25 -20)📝
accounts/urls.py(+9 -5)📝
accounts/utils.py(+23 -0)📝
accounts/views.py(+44 -9)📝
admin/views.py(+6 -7)📝
templates/base.html(+2 -0)📝
webvirtcloud/settings.py.template(+2 -0)📄 Description
Improved OTP. Now if OTP is enabled there's a link on login form to get OTP via email:



Clicking on the link leads to OTP email form, where user must provide valid email to get OTP:
If user with such email exists email will be sent with users's OTP QR code. NOTE: message about successful email will be shown even if email does not belong to any user.
Superuser cannot see user's QR code anymore, instead there's a button that can be used to email QR code to user:
Note that following needs to be added to settings.py
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.