mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Use toast instead of alert for authentication errors
This commit is contained in:
parent
8482808b75
commit
b141d585df
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { authenticationService } from '@/_services';
|
import { authenticationService } from '@/_services';
|
||||||
|
import { toast } from 'react-toastify';
|
||||||
|
|
||||||
class LoginPage extends React.Component {
|
class LoginPage extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
|
@ -27,7 +28,7 @@ class LoginPage extends React.Component {
|
||||||
this.props.history.push(from);
|
this.props.history.push(from);
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
alert('Invalid username or password');
|
toast.error('Invalid username or password', { hideProgressBar: true, position: "top-center" });
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue