File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Umbraco.Forms.Integrations.Automation.Zapier/Controllers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
using System . Configuration ;
2
2
using System . Linq ;
3
-
4
-
3
+ using System . Threading . Tasks ;
5
4
using Umbraco . Forms . Integrations . Automation . Zapier . Configuration ;
6
5
using Umbraco . Forms . Integrations . Automation . Zapier . Models ;
7
6
@@ -48,10 +47,11 @@ public AuthController(IUserService userService)
48
47
#endif
49
48
50
49
[ HttpPost ]
51
- public bool ValidateUser ( [ FromBody ] UserModel userModel )
50
+ public async Task < bool > ValidateUser ( [ FromBody ] UserModel userModel )
52
51
{
53
52
#if NETCOREAPP
54
- var isUserValid = _backOfficeUserManager . ValidateCredentialsAsync ( userModel . Username , userModel . Password ) . GetAwaiter ( ) . GetResult ( ) ;
53
+ var isUserValid =
54
+ await _backOfficeUserManager . ValidateCredentialsAsync ( userModel . Username , userModel . Password ) ;
55
55
#else
56
56
var isUserValid = Security . ValidateBackOfficeCredentials ( userModel . Username , userModel . Password ) ;
57
57
#endif
You can’t perform that action at this time.
0 commit comments