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