-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Email OTP code validation * Lint * Fix * Fixes * Fix * Changelog * Update locales * Use pyotp to generate and verify the token * Formatting * Fixes * Fix conflicts * Fix tests * Relax coverage * Fix readme * Rename endpoint * Fixes * Colors * Fix logics * Fix logics * Translations * Use secret * Fix otp field name * fix tests * Fix code * Windows mailserver compatibility * Lint * Update locales * Explicit help text for email * Helptext * Update locales * Update template * Locales * Template fixed * locales * Locales * Update locales * Template * Update locales * Fix template * Fixes * Form * --- * Fix zcml * Fix translation * Fix * Fix template * Translations
- Loading branch information
Showing
22 changed files
with
873 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,7 @@ | |
"plone.app.dexterity", | ||
"souper.plone", | ||
"click", | ||
"pyotp", | ||
], | ||
extras_require={ | ||
"hcaptcha": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/collective/volto/formsupport/browser/email_confirm_view.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# -*- coding: utf-8 -*- | ||
from plone import api | ||
from Products.Five.browser import BrowserView | ||
|
||
|
||
class EmailConfirmView(BrowserView): | ||
def __call__(self, token="alksdjfakls", *args, **kwargs): | ||
self.token = token | ||
|
||
return super().__call__(*args, **kwargs) | ||
|
||
def get_token(self): | ||
return self.token | ||
|
||
def get_portal(self): | ||
return api.portal.get() | ||
|
||
def context_url(self): | ||
return self.context.absolute_url() |
Oops, something went wrong.