Commit graph

38 commits

Author SHA1 Message Date
Tom Hughes
a42b654606 Make the "remember me" option work as intended 2024-11-13 12:18:23 +00:00
Anton Khorev
be9d93640c Remove former .auth-container wrapper divs 2024-07-09 17:56:49 +03:00
Anton Khorev
8ee3d67831 Set "login/signup" page width equal to "about" page width 2024-07-05 14:38:25 +03:00
Emin Kocan
c10c10e734
update styling
Co-authored-by: Anton Khorev <tony29@yandex.ru>
2024-07-04 14:18:09 +02:00
Emin Kocan
1ce191943c refactor password field to use form helpers 2024-07-03 15:01:13 +02:00
Emin Kocan
9e99fa05c9 add _section_divider component utilizing hr tags 2024-06-27 18:52:56 +02:00
Nenad Vujicic
523d36bbaa Fixed "or divider" issue described in #4773 by adding mb-2 below "or" divider 2024-05-30 12:02:35 +02:00
Andy Allan
9adae1c523 Re-enable autocomplete for passwords
Regression for c4347c8d9a

Thankfully browsers ignore this for login fields, but it shouldn't
be turned off anyway.
2024-05-29 19:02:25 +01:00
Andy Allan
979d616c38 Re-enable translations for password field
Fixes regression introduced in c4347c8d9a
2024-05-29 18:48:01 +01:00
Nenad Vujicic
73a60baf8c Fixed "Tab alignment" issue described in #4773 2024-05-24 11:36:28 +02:00
Andy Allan
532dd10b18
Merge pull request #4756 from tomhughes/text-muted
Replace deprecated text-muted class with text-body-secondary
2024-05-22 12:32:38 +01:00
Andy Allan
8a5c9a8052
Merge pull request #4758 from tomhughes/login-referer
Stop using the session to persist the referer during login
2024-05-22 12:09:31 +01:00
Tom Hughes
161fc8ac47 Replace deprecated text-muted class with text-body-secondary 2024-05-22 11:58:32 +01:00
Tom Hughes
8da173e0f5 Make the login and signup screens focus on the first input
Fixes #4814
2024-05-19 19:37:30 +01:00
Anton Khorev
20a6e0fab6 Use bg-body in "log in / sign up to access" messages 2024-05-12 17:58:21 +03:00
Tom Hughes
74cc88fce4 Stop using the session to persist the referer during login 2024-05-06 10:55:07 +01:00
Milan Cvetkovic
9649b192c0 Add preferred provider social signup
- Add preferred provider for authorization to login and signup pages.
  To use, the 3rd party application would have to add `preferred_provider=...`
  parameter to OAuth2 authorization request.
- Resize 3rd party provider icons
- Add "login to authorize" heading to login and signup screens
2024-04-29 11:32:54 +00:00
Milan Cvetkovic
d0e8f72311 Add tabbed navigation for signup/login screens 2024-04-27 12:44:10 +01:00
Milan Cvetkovic
ae87d2ca7f Extract 3rd party login buttons from login screen 2024-04-27 12:44:09 +01:00
Milan Cvetkovic
c4347c8d9a Move 'Forgot password' link to the right of password label 2024-04-27 12:44:09 +01:00
Milan Cvetkovic
64083f0264 Add globe on top of login screen, narrow login/signup screens 2024-04-27 12:44:09 +01:00
Milan Cvetkovic
518f55c191 Use official "Log in to Microsoft" icon
Downloaded from https://learn.microsoft.com/en-us/entra/identity-platform/howto-add-branding-in-apps
on 2024-03-15.
2024-03-15 15:34:51 +00:00
Anton Khorev
d042423541 Set OpenID tabindex higher than username/password form tabindexes 2024-01-23 21:22:05 +03:00
Andy Allan
1d0f588d62 Use path and url helpers for password links 2023-12-06 18:39:25 +00:00
Andy Allan
0a41b19bbc Use an inline list for the login auth buttons 2023-09-13 10:58:36 +01:00
Milan Cvetkovic
ad164d384e Change provider name to "microsoft" 2023-08-20 10:19:30 +01:00
Milan Cvetkovic
568bf4939d Replace references to windowslive with microsoft_graph 2023-08-17 13:01:15 +00:00
Milan Cvetkovic
7428da74c2 Use omniauth-microsoft_graph instead of omniauth-windowslive
Omniauth-microsoft_graph correctly populates 'email' and 'name' fields used by OpenStreetMap.
It also  uses updated endpoints for Microsoft identity provider.

Use email address returned by microsoft_graph provider as a verified address.

Upgrading exisiting users from windowslive to microsoft_graph:
 - upon next login existing `windowslive` users will have to authorizei
   OpenStreetMap application to "Read Your Profile," required for proper reading
   of display name field.

The name of the identity provider in OSM is kept to 'windowslive':
 - the entries in users table with `provider == 'windowslive'`
   can be reused for microsoft_graph provider, since
   the uid field is preserved. Users will not need to repeat the sign up process.
 - OAuth2 callback is still `/auth/windowslive`, no updates to Microsoft Identity Provider portal
   App registration are necessary.
2023-08-17 13:01:15 +00:00
Andy Allan
972249ce9d Reconfigure the suspended flash message to avoid html_safe
This also avoids having raw html in the translation strings
2022-11-17 12:04:28 +00:00
Andy Allan
934d81aa55 Bootstrap 5: Replace all form-group classes with mb-3 2022-07-20 14:42:57 +01:00
Andy Allan
e80d74ae73 Bootstrap 5: Add form-label class to hand-crafted form labels
This is done automatically for forms created by bootstrap_form
2022-07-20 14:41:56 +01:00
Tom Hughes
a3617b492e Drop AOL and Wordpress login links
Fixes #3555
2022-05-20 18:25:15 +01:00
Andy Allan
a8e8ba1a64 Refactor the account edit/update pages out into a separate accounts controller 2021-12-08 15:17:50 +00:00
Tom Hughes
e842c7be97 Add missing autocomplete attributes 2021-07-27 19:36:47 +01:00
Tom Hughes
4a45092e27 Remove the Yahoo OpenID link as they no longer support OpenID 2021-06-17 22:33:05 +01:00
Andy Allan
7a66c6d4eb Split password reset functionality into PasswordsController 2021-04-07 16:05:28 +01:00
Andy Allan
12228510c3 Fix registration link
Fixes #3156
2021-03-29 14:57:41 +01:00
Andy Allan
f18baae22e Refactor login/logout into sessions controller
Certain controller methods are shared with oauth-based logins, and these have been
moved to a concern.
2021-03-24 11:32:46 +00:00