mirror of
https://github.com/flarum/framework.git
synced 2025-05-21 22:36:01 +08:00
Remove sudo mode and add password confirmation when changing email address
closes #674
This commit is contained in:
@ -252,15 +252,6 @@ export default class App {
|
||||
m.request(options).then(response => deferred.resolve(response), error => {
|
||||
this.requestError = error;
|
||||
|
||||
if (error.response && error.response.errors && error.response.errors[0] && error.response.errors[0].code === 'invalid_access_token') {
|
||||
this.modal.show(new ConfirmPasswordModal({
|
||||
deferredRequest: originalOptions,
|
||||
deferred,
|
||||
error
|
||||
}));
|
||||
return;
|
||||
}
|
||||
|
||||
let children;
|
||||
|
||||
switch (error.status) {
|
||||
|
Reference in New Issue
Block a user