Merge pull request #309 from aubrey-b/email-check
Check for a valid email.
This commit is contained in:
@ -42,13 +42,15 @@
|
||||
string _confirm = "";
|
||||
string _email = "";
|
||||
string _displayName = "";
|
||||
bool _isEmailValid = false;
|
||||
|
||||
private async Task Register()
|
||||
{
|
||||
try
|
||||
{
|
||||
_message = "";
|
||||
if (_username != "" && _password != "" && _confirm != "" && _email != "")
|
||||
_isEmailValid = Utilities.IsValidEmail(_email);
|
||||
if (_username != "" && _password != "" && _confirm != "" && _isEmailValid)
|
||||
{
|
||||
if (_password == _confirm)
|
||||
{
|
||||
@ -94,4 +96,4 @@
|
||||
{
|
||||
NavigationManager.NavigateTo(NavigateUrl(""));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user