@designcrowd/fe-shared-lib 1.0.8-ml-82-9 → 1.0.8-ml-82-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
</p>
|
|
58
58
|
<div class="tw-flex tw-flex-col">
|
|
59
59
|
<div>
|
|
60
|
-
<form id="signin" action="
|
|
60
|
+
<form id="signin" :action="actionUrl" method="post" @submit="validate">
|
|
61
61
|
<input name="__RequestVerificationToken" type="hidden" :value="antiForgeryToken" />
|
|
62
62
|
<label for="userName" class="tw-sr-only"> {{ emailLabel }} </label>
|
|
63
63
|
<input
|
|
@@ -340,6 +340,11 @@ export default {
|
|
|
340
340
|
required: false,
|
|
341
341
|
default: undefined,
|
|
342
342
|
},
|
|
343
|
+
returnUrl: {
|
|
344
|
+
type: String,
|
|
345
|
+
required: false,
|
|
346
|
+
default: undefined,
|
|
347
|
+
},
|
|
343
348
|
},
|
|
344
349
|
data() {
|
|
345
350
|
return {
|
|
@@ -384,7 +389,7 @@ export default {
|
|
|
384
389
|
if (typeof window === 'undefined') {
|
|
385
390
|
return null;
|
|
386
391
|
}
|
|
387
|
-
|
|
392
|
+
|
|
388
393
|
const url = new URL(`https://${window.location.host}${this.recommendedActionLink}`);
|
|
389
394
|
if (this.aUserName) {
|
|
390
395
|
url.searchParams.append('email', this.aUserName);
|
|
@@ -400,6 +405,9 @@ export default {
|
|
|
400
405
|
}
|
|
401
406
|
return this.signUpText;
|
|
402
407
|
},
|
|
408
|
+
actionUrl() {
|
|
409
|
+
return this.returnUrl ? `/identity/account/signin?returnUrl=${this.returnUrl}` : '/identity/account/signin';
|
|
410
|
+
},
|
|
403
411
|
},
|
|
404
412
|
watch: {
|
|
405
413
|
capturePassword() {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<h2 v-if="title" class="tw-text-center tw-text-4xl tw-font-bold tw-mb-6">
|
|
33
33
|
{{ title }}
|
|
34
34
|
</h2>
|
|
35
|
-
<form id="signup" action="
|
|
35
|
+
<form id="signup" :action="actionUrl" method="post" @submit="validate">
|
|
36
36
|
<input name="__RequestVerificationToken" type="hidden" :value="antiForgeryToken" />
|
|
37
37
|
<label for="userName" class="tw-sr-only"> {{ emailLabel }} </label>
|
|
38
38
|
<input
|
|
@@ -225,6 +225,11 @@ export default {
|
|
|
225
225
|
required: false,
|
|
226
226
|
default: undefined,
|
|
227
227
|
},
|
|
228
|
+
returnUrl: {
|
|
229
|
+
type: String,
|
|
230
|
+
required: false,
|
|
231
|
+
default: undefined,
|
|
232
|
+
},
|
|
228
233
|
},
|
|
229
234
|
data() {
|
|
230
235
|
return {
|
|
@@ -251,13 +256,16 @@ export default {
|
|
|
251
256
|
if (typeof window === 'undefined') {
|
|
252
257
|
return null;
|
|
253
258
|
}
|
|
254
|
-
|
|
259
|
+
|
|
255
260
|
const url = new URL(`https://${window.location.host}${this.recommendedActionLink}`);
|
|
256
261
|
if (this.aUserName) {
|
|
257
262
|
url.searchParams.append('email', this.aUserName);
|
|
258
263
|
}
|
|
259
264
|
return url?.toString();
|
|
260
265
|
},
|
|
266
|
+
actionUrl() {
|
|
267
|
+
return this.returnUrl ? `/identity/account/signup?returnUrl=${this.returnUrl}` : '/identity/account/signup';
|
|
268
|
+
},
|
|
261
269
|
},
|
|
262
270
|
methods: {
|
|
263
271
|
validate(e) {
|