Jesús Espino
a4ae404473
Migrate to idiomatic error handling app/authentication.go ( #9411 )
2018-09-24 22:22:24 +02:00
Christopher Speller
3ea33b76f8
Improving token lookup. ( #9436 )
2018-09-20 10:23:44 -04:00
Saturnino Abril
70a118c0fd
remove license check when enforcing password requirements ( #8840 )
...
Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com >
2018-05-23 20:36:20 +08:00
Chris
1ec295f88c
add App.License, remove utils.IsLicensed / utils.License calls ( #8203 )
2018-02-06 17:25:49 -06:00
Jesse Hallam
81e67f8759
ABC-179: check email verification last ( #8172 )
...
* ABC-179: check email verification last
This change changes the authentication checks to be:
* "preflight checks"
** mfa
** not disabled
** login attempts
* password
* "postflight checks"
** email verified
Checking whether the email is verified or not last avoids the weird edge
case where entering any bogus password for an account with an unverified
email shows a message about verifying the email and offering to resend.
* fix invalid unit test assertion
Client.CreateUser returns a user whose password has been sanitized.
Adopt the pattern in the previous assertions to use a new variable name
and test the password on the original model.User object. This didn't
expose any underlying broken behaviour, but the test wouldn't have
caught it if it had regressed.
Also fix a minor typo.
2018-02-05 10:54:13 -05:00
Christopher Speller
1262d25473
User based rate limiting ( #8152 )
2018-01-31 09:49:15 -08:00
Chris
d1cee02247
Refactor password validation and config defaults ( #7859 )
...
* refactor password validation and config defaults
* reorder config lines for clarity
2017-11-20 11:04:04 -06:00
Chris
7ed011745a
Remove more global refs / state ( #7723 )
...
* remove more global refs / state
* fix job enterprise initialization
* fix api4 test compilation
* saml api endpoints fix
2017-10-26 15:21:22 -04:00
Chris
8e19ba029f
Reduce utils.Cfg references ( #7650 )
...
* app.UpdateConfig method
* test fix
* another test fix
* the config override option as-was is just error prone, remove it for now
* derp
2017-10-18 15:36:43 -07:00
Chris
ac74066f0e
remove einterface gets ( #7455 )
2017-09-19 18:31:35 -05:00
Christopher Speller
29fca51821
Renaming repo
2017-09-06 23:11:59 -07:00
Chris
1adfd0e9be
app type transition ( #7167 )
2017-09-06 17:12:54 -05:00
Saturnino Abril
651dd33b29
set to default value with config is missing ( #7320 )
2017-08-30 13:54:16 -04:00
Corey Hulen
0ab490845a
PLT-6226 Fixing races with licensing ( #7213 )
...
* PLT-6226 Fixing races with licensing
* Fixing build issue
* Fixing licensing issue
* removing commented code
2017-08-16 09:51:45 -07:00
Harrison Healey
fb6f2a123c
PLT-5860 Updated copyright date ( #6058 )
...
* PLT-5860 Updated copyright date in about modal
* PLT-5860 Updated copyright notice in JSX files
* PLT-5860 Updated copyright notice in go files
* Fixed misc copyright dates
* Fixed component snapshots
2017-04-12 08:27:57 -04:00
Joram Wilander
dfc6db7374
Refactor switching login type code into app layer and add v4 endpoint ( #6000 )
...
* Refactor switching login type code into app layer and add v4 endpoint
* Fix unit test
2017-04-10 08:19:49 -04:00
Josta Yee
c817c5d740
Simplify code ( #5452 )
...
https://github.com/mattermost/platform/blob/master/app/authentication.go#L149 has compared `user.AuthService` with `model.USER_AUTH_SERVICE_LDAP`, so this check is useless here.
2017-02-17 14:04:19 +00:00
Joram Wilander
9dc76c1823
Implement PUT /users/{user_id}/password endpoint for APIv4 ( #5243 )
2017-02-07 09:35:58 -08:00
Joram Wilander
c01d9ad6cf
Implement APIv4 infrastructure ( #5191 )
...
* Implement APIv4 infrastructure
* Update parameter requirement functions per feedback
2017-01-30 08:30:02 -05:00