Add an API to reset the password
This commit is contained in:
		@@ -51,7 +51,7 @@ func (svc *EmailSvc) SendVerification(ctx context.Context) error {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if val, ok := userns.Labels["email-verified"]; ok && val == "true" {
 | 
			
		||||
		return errors.Error("email is already verified")
 | 
			
		||||
		return errors.New("email is already verified")
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	number := encodeToString(6)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user