Fix error handling and update permission on auth-profile page (#1089)
This commit is contained in:
@@ -149,7 +149,7 @@ func (h *AuthHandlers) profileProc(req *request.AuthReq) error {
|
||||
service.UserErrNotAllowedToUpdate().Is(err),
|
||||
service.AttachmentErrInvalidAvatarFileType().Is(err),
|
||||
service.AttachmentErrInvalidAvatarFileSize().Is(err),
|
||||
service.AttachmentErrInvalidInitialsLength().Is(err):
|
||||
service.AttachmentErrInvalidAvatarGenerateFontFile().Is(err):
|
||||
req.SetKV(map[string]string{
|
||||
"error": err.Error(),
|
||||
"email": u.Email,
|
||||
|
||||
Reference in New Issue
Block a user