feat: Clear flash messages during login (#2772)
* feat: Make the auth error message non-sticky in nature --------- Co-authored-by: sohail-hashicorp <198640889+sohail-hashicorp@users.noreply.github.com>
This commit is contained in:
1 parent
9560148253
commit
3d58745bf1
1 file changed
+4
-1
@@ -70,7 +70,10 @@ export default class ScopesScopeAuthenticateMethodOidcRoute extends Route {
|
||||
* notified and returned to the index.
|
||||
*/
|
||||
@action
|
||||
@notifyError(() => 'errors.authentication-failed.title', { catch: true })
|
||||
@notifyError(() => 'errors.authentication-failed.title', {
|
||||
catch: true,
|
||||
sticky: false,
|
||||
})
|
||||
error(e) {
|
||||
this.router.transitionTo('scopes.scope.authenticate.method.index');
|
||||
// rethrow the error to activate the notifyError decorator
|
||||
|
||||
Reference in new issue
Block a user