3
0

Fix error handling and update permission on auth-profile page (#1089)

This commit is contained in:
Mumbi Francis
2023-04-20 18:23:41 +03:00
committed by GitHub
parent eeac4c05b5
commit bdf92b9f80
5 changed files with 25 additions and 57 deletions

View File

@@ -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,