|
@@ -484,7 +484,7 @@ func (this *SysAdminController) Add() {
|
|
|
admin.RealName = req.RealName
|
|
|
admin.Password = pass
|
|
|
admin.LastUpdatedPasswordTime = time.Now().Format(utils.FormatDateTime)
|
|
|
- admin.Enabled = 1
|
|
|
+ admin.Enabled = req.Enabled
|
|
|
admin.LastLoginTime = time.Now().Format(utils.FormatDateTime)
|
|
|
admin.CreatedTime = time.Now()
|
|
|
admin.LastUpdatedTime = time.Now().Format(utils.FormatDateTime)
|