mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: login security issue (#1198)
* fix
* fix bug
* changes
* Revert "changes"
This reverts commit 2b2084c7bd
.
* should close the toast if its error also
* no internal errors + sso
* change the text to Incorrect login credentials, please try again
This commit is contained in:
@ -94,7 +94,7 @@ const initialToastHelper = () => {
|
||||
return showToast({ type: "success", content, duration });
|
||||
};
|
||||
|
||||
const error = (content: string, duration = -1) => {
|
||||
const error = (content: string, duration = 5000) => {
|
||||
return showToast({ type: "error", content, duration });
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user