fix
This commit is contained in:
parent
1e266c3a56
commit
0d19c8b4d1
|
@ -117,6 +117,11 @@ button:hover {
|
|||
</form>
|
||||
</div>
|
||||
|
||||
<div id="messageContainer">
|
||||
<p id="successMessage" class="message success"></p>
|
||||
<p id="errorMessage" class="message error"></p>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function resetPassword() {
|
||||
const new_password = document.getElementById("new_password").value;
|
||||
|
|
|
@ -56,7 +56,7 @@ func (l *UserResetPasswordLogic) UserResetPassword(req *types.RequestUserResetPa
|
|||
|
||||
err = l.svcCtx.AllModels.FsUser.Transaction(l.ctx, func(tx *gorm.DB) error {
|
||||
user := &gmodel.FsUser{}
|
||||
err := tx.Where("id = ?", user.Id).Take(user).Error
|
||||
err := tx.Model(user).Where("id = ?", rt.UserId).Take(user).Error
|
||||
if err != nil {
|
||||
logx.Error(err)
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue
Block a user