mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-11-03 19:14:03 +00:00 
			
		
		
		
	Can check through the API whether an email address exists or not
This commit is contained in:
		@@ -161,6 +161,20 @@ export class AccountHelper {
 | 
			
		||||
		};
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Check out whether an email address exists or not
 | 
			
		||||
	 * 
 | 
			
		||||
	 * @param email Email address to check
 | 
			
		||||
	 */
 | 
			
		||||
	public static async ExistsEmail(email: string) : Promise<boolean> {
 | 
			
		||||
		return await DatabaseHelper.Count({
 | 
			
		||||
			table: USER_TABLE,
 | 
			
		||||
			where: {
 | 
			
		||||
				mail: email
 | 
			
		||||
			}
 | 
			
		||||
		}) > 0;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Check out whether a virtual directory is available or not
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user