mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 11:48:08 +08:00
Review Changes for f4f8a293e7
.
This commit is contained in:
@ -169,7 +169,7 @@ const AdminUser = Discourse.User.extend({
|
||||
},
|
||||
|
||||
disableSecondFactor() {
|
||||
return ajax("/admin/users/" + this.get('id') + "/disable_second_factor", {
|
||||
return ajax(`/admin/users/${this.get('id')}/disable_second_factor`, {
|
||||
type: 'PUT'
|
||||
}).then(() => {
|
||||
this.set('second_factor_enabled', false);
|
||||
|
Reference in New Issue
Block a user