mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-22 16:38:21 +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 { authenticationService } from '@/_services';
|
||||
import { toast } from 'react-toastify';
|
||||
|
||||
class LoginPage extends React.Component {
|
||||
constructor(props) {
|
||||
|
|
@ -27,7 +28,7 @@ class LoginPage extends React.Component {
|
|||
this.props.history.push(from);
|
||||
},
|
||||
error => {
|
||||
alert('Invalid username or password');
|
||||
toast.error('Invalid username or password', { hideProgressBar: true, position: "top-center" });
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue