File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,11 @@ var abp = abp || {};
66
66
xhr . setRequestHeader ( 'Abp.TenantId' , tenantId ) ;
67
67
xhr . setRequestHeader ( 'Content-type' , 'application/json' ) ;
68
68
addAntiForgeryTokenToXhr ( xhr ) ;
69
- xhr . send ( "{" + "usernameOrEmailAddress:'" + usernameOrEmailAddress + "'," + "password:'" + password + "'}" ) ;
69
+ xhr . send (
70
+ JSON . stringify (
71
+ { usernameOrEmailAddress : usernameOrEmailAddress , password : password }
72
+ )
73
+ ) ;
70
74
} ;
71
75
72
76
abp . swagger . login = function ( callback ) {
@@ -90,7 +94,9 @@ var abp = abp || {};
90
94
xhrTenancyName . open ( 'POST' , '/api/services/app/Account/IsTenantAvailable' , true ) ;
91
95
xhrTenancyName . setRequestHeader ( 'Content-type' , 'application/json' ) ;
92
96
addAntiForgeryTokenToXhr ( xhrTenancyName ) ;
93
- xhrTenancyName . send ( "{" + "tenancyName:'" + tenancyName + "'}" ) ;
97
+ xhrTenancyName . send (
98
+ JSON . stringify ( { tenancyName : tenancyName } )
99
+ ) ;
94
100
} else {
95
101
loginUserInternal ( null , callback ) ; // Login for host
96
102
}
You can’t perform that action at this time.
0 commit comments