Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
erp5
Commits
ef6dacc3
Commit
ef6dacc3
authored
May 28, 2024
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
erp5_oauth2_authorisation: Supports external login and erp5_credential if installed.
See merge request
nexedi/erp5!1909
parents
ac16835c
2ebae958
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
4 deletions
+43
-4
bt5/erp5_oauth2_authorisation/SkinTemplateItem/portal_skins/erp5_oauth2_authorisation/login_once_form.zpt
...ortal_skins/erp5_oauth2_authorisation/login_once_form.zpt
+43
-4
No files found.
bt5/erp5_oauth2_authorisation/SkinTemplateItem/portal_skins/erp5_oauth2_authorisation/login_once_form.zpt
View file @
ef6dacc3
...
...
@@ -12,6 +12,13 @@
js_list python: [portal_url + '/erp5.js'];
came_from python: request.get('came_from');
ERP5Site python: modules['Products.ERP5.ERP5Site'];
portal python: context.getPortalObject();
web_site_value python: context.getWebSiteValue();
root_absolute_url python: (portal if web_site_value is None else web_site_value).absolute_url() + '/';
available_oauth_login_list python: portal.ERP5Site_getAvailableOAuthLoginList();
enable_google_login python: 'google' in available_oauth_login_list;
enable_facebook_login python: 'facebook' in available_oauth_login_list;
enable_openidconnect_login python: 'openidconnect' in available_oauth_login_list;
"
>
<tal:block metal:use-macro="python: context.main_template.macros['master']">
...
...
@@ -56,15 +63,47 @@
<div class="field">
<label> </label>
<div class="input">
<a
tal:attributes="
href python: portal_url + '/portal_password/PasswordTool_viewEmailPassword';
"
<a tal:define="default_href python: portal_url + '/portal_password/PasswordTool_viewEmailPassword';
credential_href string:${here/portal_url}/ERP5Site_viewCredentialRecoveryLoginDialog;"
tal:attributes="href python: credential_href if getattr(portal.portal_skins, 'erp5_credential', None) else default_href"
i18n:translate=""
i18n:domain="ui"
>I forgot my password!</a>
</div>
</div>
<tal:block tal:condition="enable_google_login">
<div class="field">
<label> </label>
<div class="input">
<a tal:attributes="href string:${here/portal_url}/ERP5Site_redirectToGoogleLoginPage"
i18n:translate="" i18n:domain="ui" class="google">
<img alt="Sign in with Google" src="google_login_button.png"/>
</a>
</div>
</div>
</tal:block>
<tal:block tal:condition="enable_facebook_login">
<div class="field">
<label> </label>
<div class="input">
<a tal:attributes="href string:${here/portal_url}/ERP5Site_redirectToFacebookLoginPage"
i18n:translate="" i18n:domain="ui">
<img alt="Login with Facebook" src="facebook_login_button.png">
</a>
</div>
</div>
</tal:block>
<tal:block tal:condition="enable_openidconnect_login">
<div class="field">
<label> </label>
<div class="input">
<a tal:attributes="href string:${here/portal_url}/ERP5Site_redirectToOpenIdLoginPage"
i18n:translate="" i18n:domain="ui">
<img alt="Sign in with OpenID Connect" src="openid_login_button.png"/>
</a>
</div>
</div>
</tal:block>
</fieldset>
<p i18n:translate="" i18n:domain="ui">Having trouble logging in? Make sure to enable cookies in your web browser.</p>
<p i18n:translate="" i18n:domain="ui">Do not forget to logout or exit your browser when you are done.</p>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment