mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-11 19:03:46 +02:00
Show success message to the user
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import http from '@/api/http';
|
||||
|
||||
export default (email: string): Promise<void> => {
|
||||
export default (email: string): Promise<string> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
http.post('/auth/password', { email })
|
||||
.then(() => resolve())
|
||||
.then(response => resolve(response.data.status || ''))
|
||||
.catch(reject);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user