feat(dashboard): edit and remove 2FA secret for users

This commit is contained in:
HFO4 2022-11-23 17:55:23 +08:00
parent 6b63195d28
commit 756769335f
2 changed files with 2 additions and 1 deletions

2
assets

@ -1 +1 @@
Subproject commit 963ac5b08ecabd4c0e8debde034da726b91f5545
Subproject commit e432a81328c577a22698924f9703a6c684eb66d0

View file

@ -109,6 +109,7 @@ func (service *AddUserService) Add() serializer.Response {
user.Email = service.User.Email
user.GroupID = service.User.GroupID
user.Status = service.User.Status
user.TwoFactor = service.User.TwoFactor
// 检查愚蠢操作
if user.ID == 1 && user.GroupID != 1 {