Initial commit (code only without large binaries)
This commit is contained in:
19
EdgeUser/web/views/@default/settings/mfa/index.js
Normal file
19
EdgeUser/web/views/@default/settings/mfa/index.js
Normal file
@@ -0,0 +1,19 @@
|
||||
Tea.context(function () {
|
||||
this.enable = function () {
|
||||
teaweb.confirm("确定要启用多因子认证吗?", function () {
|
||||
this.$post(".enable")
|
||||
.success(function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
this.disable = function () {
|
||||
teaweb.confirm("确定要停用多因子认证吗?", function () {
|
||||
this.$post(".disable")
|
||||
.success(function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user