mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-28 10:51:57 +08:00
feat(dashboard): edit and remove 2FA secret for users
This commit is contained in:
2
assets
2
assets
Submodule assets updated: 963ac5b08e...e432a81328
@@ -109,6 +109,7 @@ func (service *AddUserService) Add() serializer.Response {
|
|||||||
user.Email = service.User.Email
|
user.Email = service.User.Email
|
||||||
user.GroupID = service.User.GroupID
|
user.GroupID = service.User.GroupID
|
||||||
user.Status = service.User.Status
|
user.Status = service.User.Status
|
||||||
|
user.TwoFactor = service.User.TwoFactor
|
||||||
|
|
||||||
// 检查愚蠢操作
|
// 检查愚蠢操作
|
||||||
if user.ID == 1 && user.GroupID != 1 {
|
if user.ID == 1 && user.GroupID != 1 {
|
||||||
|
|||||||
Reference in New Issue
Block a user