Robert Speicher
9f554aadd5
Fix 2FA-based login for LDAP users
...
The OTP input form is shared by both LDAP and standard logins, but when
coming from an LDAP-based form, the form parameters aren't nested in a
Hash based on the `resource_name` value.
Now we check for a nested `remember_me` parameter and use that if it
exists, or fall back to the non-nested parameters if it doesn't.
Somewhat confusingly, the OTP input form _does_ nest parameters under
the `resource_name`, regardless of what type of login we're coming from,
so that allows everything else to work as normal.
2016-06-07 18:47:46 -04:00
Timothy Andrew
86b07caa59
Implement authentication (login) using a U2F device.
...
- Move the `authenticate_with_two_factor` method from
`ApplicationController` to the `AuthenticatesWithTwoFactor` module,
where it should be.
2016-06-06 12:50:31 +05:30
Connor Shea
ec1191a110
Disable 2FA field autocomplete, resolves #18021 .
2016-06-01 12:45:53 -06:00
Robert Speicher
a602df3031
Pass the "Remember me" value to the 2FA token form
...
Prior, if a user had 2FA enabled and checked the "Remember me" field,
the setting was ignored because the OTP input was on a new form and the
value was never passed.
Closes #18000
2016-05-30 22:25:35 -04:00
Andrei Gliga
284eccb5e6
render the omniauth_box if there are any button_based_providers
2016-05-12 13:44:46 +03:00
connorshea
b898810c8d
Improve the Two-factor Authentication sign-in text [ci skip]
...
Resolves #14543 .
2016-05-03 13:55:19 -06:00
Arinde Eniola
367818d293
change the css class has_tooltip to has-tooltip universally
2016-03-20 21:37:22 +01:00
Robert Speicher
b95ef77e23
Move "I should see Crowd login form" feature to a view spec
...
We were doing all kinds of code gymnastics to "enable" Crowd in the
feature spec and this would sometimes cause a transient failure.
Really what it's testing is if the Crowd login form shows when Crowd's
enabled, so this is much better suited to a view spec.
2016-02-24 17:38:13 -05:00
Peter Hudec and Rémy Coutable
dcaeee4579
Show Crowd login even when sign-in is disabled
2016-02-23 15:13:50 +01:00
Valery Sizov
3700e5a960
Crowd integration
2015-09-02 12:42:01 +03:00
Daryl Chan
e72a9685f3
Added tags to disable autocapitalize and autocorrect on login field
...
- Updated CHANGELOG
2015-07-29 15:42:52 +08:00
Douwe Maan
70a3c165a9
Allow custom label to be set for authentication providers.
2015-07-23 15:20:12 +02:00
Douwe Maan
44458f3ca2
Add "Remember me" checkbox to LDAP signin form.
2015-06-05 14:37:01 +02:00
Robert Speicher
76873ce4a4
Move "invalid 2FA code" error message to the flash
...
This makes it consistent with the Invalid email/password error message
from the previous step.
2015-05-09 17:32:49 -04:00
Robert Speicher
a4267033f2
Add a hint on login form about using a recovery code
2015-05-09 17:32:09 -04:00
Robert Speicher
32971b0af4
Refactor SessionsController
...
Also adds test case for providing an invalid 2FA code and then a valid
one without re-entering username and password.
2015-05-09 17:32:09 -04:00
Robert Speicher
6fa2942920
Update login views for two-factor auth
2015-05-09 17:31:40 -04:00
Robert Speicher
bd680999f9
Be consistent with what we call the 2FA feature
...
"Two-factor" vs. "2-Factor"
2015-05-09 17:31:39 -04:00
Dmitriy Zaporozhets and Robert Speicher
de9e1c3bad
Turn 2-factor authentication into 2 steps process. Disabled 2fa UI for ldap users since it is not supported
2015-05-09 17:31:10 -04:00
Dmitriy Zaporozhets and Robert Speicher
7302395142
Init 2 factor authentication for user model
2015-05-09 17:31:07 -04:00
Douwe Maan
26ad250989
Add a page title to every page.
2015-04-30 19:12:15 +02:00
Douwe Maan
09791774a5
Use custom LDAP label in LDAP signin form.
2015-03-13 15:42:31 +01:00
Dmitriy Zaporozhets
12581f15ee
Merge pull request #7473 from sodabrew/patch-1
...
Improve login screen when only OmniAuth providers are enabled
2015-03-02 15:18:59 -08:00
Dmitriy Zaporozhets
ee26dae63e
Update bootstrap-sass gem
2015-02-19 15:02:49 -08:00
Aaron Stone
252ee4e7e5
Improve login screen when only OmniAuth providers are enabled
...
Avoids an empty Sign in box when signup_enabled? is false, and avoids
showing "No authentication methods configured" unless there really are none.
OmniAuth signin gets its own file for consistency with signin and signup and LDAP.
2015-02-13 23:49:12 -08:00
Douwe Maan
7c39e728ef
Move OAuth signin options just below signin box.
2015-02-13 15:16:17 +01:00
Dmitriy Zaporozhets
8589b4e137
Init ApplicationSettings resource with defaults from config file
2015-01-08 00:22:50 -08:00
Dmitriy Zaporozhets
d02a22ba21
Redesign signin/singup pages
2015-01-07 17:07:36 -08:00
Valery Sizov
b56b96d438
added helper
2014-12-04 13:03:55 +02:00
Valery Sizov
3a5ed5260b
Supporting for multiple omniauth provider for the same user
2014-12-04 13:03:55 +02:00
Dmitriy Zaporozhets
b23b78ada1
Merge pull request #7866 from cirosantilli/input-button-to-tag
...
Use button type=submit instead of input.
2014-10-28 12:11:15 +02:00
Dmitriy Zaporozhets
b0ef23c193
Fix 500 error on login page if ldap enabled and sign-in disabled
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-10-22 13:38:47 +03:00
Jan-Willem van der Meer
6ce65a3e95
Use Hash syntax for LDAP server declaration
2014-10-14 13:13:59 +02:00
Jan-Willem van der Meer
a7e071e982
Add refactoring for multiple LDAP server support
...
These changes are ported from EE to CE. Apply changes for app directory
2014-10-13 13:39:54 +02:00
Ciro Santilli
6294033024
Use button type=submit instead of input.
2014-10-01 11:12:56 +02:00
Dmitriy Zaporozhets
c9054319c8
nicer block for oauth signin links
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-08-27 18:21:54 +03:00
Dmitriy Zaporozhets
d28a27f7c4
Cleaner UI for login/signup pages
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-08-15 17:52:20 +03:00
Dmitriy Zaporozhets
25c9bf4b6a
Restore blue color for sign-in button
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-07-14 10:02:46 +03:00
Marin Jankovski
55efb2d9f2
Revert "Merge branch 'redirect_after_login' into 'master'"
...
This reverts commit 5aaa35656e , reversing
changes made to 5b8c176767 .
2014-07-11 19:53:10 +02:00
Dmitriy Zaporozhets
6d332ce146
Improve signin/signup/reset pages UI
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-07-11 16:05:57 +03:00
Marin Jankovski
26d1bd7c2a
Set return url as param.
2014-06-19 14:20:25 +02:00
Marin Jankovski
af5ea92cc4
Merge branch 'master' into login_page
...
Conflicts:
CHANGELOG
2014-04-07 20:13:37 +02:00
Dmitriy Zaporozhets
d70939f680
Remove unnecessary sign *
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-07 18:59:10 +03:00
Marin Jankovski
aea3712e8d
Add option for disable standard signin.
2014-04-07 17:11:06 +02:00
Dmitriy Zaporozhets
4ab32be8a7
Dont care about emails for oauth
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-07 15:20:40 +03:00
Job van der Voort
622bbf9629
line break
2014-03-19 14:07:42 +01:00
Job van der Voort
0e31cb40d3
require public email with oauth provider message
2014-03-19 14:01:13 +01:00
Dmitriy Zaporozhets
87415ab2a6
Add bottom margin to nav-tabs
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-02-15 13:41:48 +02:00
Dmitriy Zaporozhets
a379bd00dc
Style devise views
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-01-01 20:53:44 +02:00
Dmitriy Zaporozhets
6f556d8e71
Add resend-confirmation-link to sign-in page
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-12-16 21:10:59 +02:00