@websanova/vue-auth
Advanced tools
Comparing version 3.1.3-beta to 3.1.4-beta
@@ -17,3 +17,3 @@ { | ||
"version": "3.1.3-beta", | ||
"version": "3.1.4-beta", | ||
@@ -20,0 +20,0 @@ "repository": { |
@@ -540,17 +540,15 @@ import * as __utils from './lib/utils.js'; | ||
Auth.prototype.register = function (data) { | ||
data = __utils.extend(__auth.options.registerData, data); | ||
var registerData = __utils.extend(__auth.options.registerData, data); | ||
return new Promise((resolve, reject) => { | ||
__auth.http.http | ||
.call(__auth, data) | ||
.call(__auth, registerData) | ||
.then((res) => { | ||
if (data.autoLogin) { | ||
var loginData; | ||
if (registerData.autoLogin) { | ||
loginData = __utils.extend(__auth.options.loginData, data); | ||
__auth | ||
.login({ | ||
body: data.body, | ||
redirect: data.redirect, | ||
remember: data.remember, | ||
fetchUser: data.fetchUser, | ||
staySignedIn: data.staySignedIn | ||
}) | ||
.login(loginData) | ||
.then(resolve, reject); | ||
@@ -561,3 +559,3 @@ } | ||
_processRedirect(data.redirect); | ||
_processRedirect(registerData.redirect); | ||
} | ||
@@ -578,4 +576,2 @@ }, reject); | ||
.then((res) => { | ||
// _setAuthenticated(true); | ||
if ( | ||
@@ -582,0 +578,0 @@ data.fetchUser || |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83329
1322