diff --git a/client/src/app/login/login.component.html b/client/src/app/login/login.component.html index 0e0ce26..cdfdb93 100644 --- a/client/src/app/login/login.component.html +++ b/client/src/app/login/login.component.html @@ -5,37 +5,39 @@
-
- -
- - - - +
+
+ +
+ + + + +
-
-
- -
- - - - +
+ +
+ + + + +
-
-
- -
-
- {{ error }} -
+
+ +
+
+ {{ error }} +
+
diff --git a/client/src/app/setup/setup.component.html b/client/src/app/setup/setup.component.html index e8f27eb..5f53e35 100644 --- a/client/src/app/setup/setup.component.html +++ b/client/src/app/setup/setup.component.html @@ -8,37 +8,38 @@
Welcome to RealDebrid Client. Please create your account by entering a username and password.
-
- -
- - - - +
+
+ +
+ + + + +
-
-
- -
- - - - +
+ +
+ + + + +
-
-
- -
-
- {{ error }} -
+
+ +
+
+ {{ error }} +
+
diff --git a/server/RdtClient.Service/Services/Authentication.cs b/server/RdtClient.Service/Services/Authentication.cs index acc059f..ada92a7 100644 --- a/server/RdtClient.Service/Services/Authentication.cs +++ b/server/RdtClient.Service/Services/Authentication.cs @@ -37,6 +37,11 @@ namespace RdtClient.Service.Services public async Task Login(String userName, String password) { + if (String.IsNullOrWhiteSpace(userName) || String.IsNullOrWhiteSpace(password)) + { + return SignInResult.Failed; + } + var result = await _signInManager.PasswordSignInAsync(userName, password, true, false); return result;