@tapni/auth 0.0.31 → 0.0.32

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.
@@ -5,10 +5,10 @@
5
5
  <img src="https://cdn.tapni.co/icons/down-arrow.png" class="responsive-image" style="width: 35%;"/>
6
6
  </i>
7
7
  </a>
8
- <h1 class="bold no-bottom center-text" style="margin-top: 63px;">{{ssoLang[this.appLang].register}}</h1>
8
+ <h1 class="bold no-bottom center-text" style="margin-top: 63px;">{{ssoLang[this.appLanguage].register}}</h1>
9
9
  <p class="half-bottom small-top center-text color-black">
10
10
  <span v-if="usernameRegister">
11
- t.link/{{username}} {{ssoLang[this.appLang].username_is_free}} ✅
11
+ t.link/{{username}} {{ssoLang[this.appLanguage].username_is_free}} ✅
12
12
  <br>
13
13
 
14
14
  </span>
@@ -19,7 +19,7 @@
19
19
  <i style="padding-top: 15px;">
20
20
  <img src="https://cdn.tapni.co/icons/mail.png" class="responsive-image" style="width: 60%;">
21
21
  </i>
22
- <input v-model="email" @keydown.space.prevent type="email" :placeholder="ssoLang[this.appLang].email" name="email" required>
22
+ <input v-model="email" @keydown.space.prevent type="email" :placeholder="ssoLang[this.appLanguage].email" name="email" required>
23
23
  <em></em>
24
24
  </div>
25
25
  <div class="page-login-field half-top">
@@ -28,7 +28,7 @@
28
28
  </i>
29
29
  <input v-model="username" @keydown.space.prevent type="text"
30
30
  autocorrect="off" autocapitalize="off" spellcheck="false"
31
- :placeholder="ssoLang[this.appLang].username" name="username" required :disabled="usernameRegister"
31
+ :placeholder="ssoLang[this.appLanguage].username" name="username" required :disabled="usernameRegister"
32
32
  :class="{'input-disabled': usernameRegister}"
33
33
  >
34
34
  <em></em>
@@ -37,7 +37,7 @@
37
37
  <i style="padding-top: 15px">
38
38
  <img src="https://cdn.tapni.co/icons/padlock.png" class="responsive-image" style="width: 50%;">
39
39
  </i>
40
- <input v-model="password" :type="revealPassword ? 'text' : 'password'" :placeholder="ssoLang[this.appLang].password" name="password" required minlength="8">
40
+ <input v-model="password" :type="revealPassword ? 'text' : 'password'" :placeholder="ssoLang[this.appLanguage].password" name="password" required minlength="8">
41
41
  <em @click="revealPassword = !revealPassword" class="pointer">
42
42
  <img v-show="!revealPassword" src="https://cdn.tapni.co/icons/reveal-password.png" class="responsive-image password-reveal-icon">
43
43
  <img v-show="revealPassword" src="https://cdn.tapni.co/icons/hide-password.png" class="responsive-image password-reveal-icon">
@@ -54,7 +54,7 @@
54
54
  <a @click="appleLogin" v-if="displayAppleLogin"
55
55
  class="button-center button button-90 google-button pointer">
56
56
  <img src="https://cdn.tapni.co/icons/apple-logo.png" style="position: absolute; margin-left: -11px; padding: 8px 0; height: 100%;"/>
57
- <span v-if="!appleLoad"> {{ssoLang[this.appLang].sign_up_with}} Apple</span>
57
+ <span v-if="!appleLoad"> {{ssoLang[this.appLanguage].sign_up_with}} Apple</span>
58
58
  <span v-else class="button--loading button__loader"></span>
59
59
  </a>
60
60
 
@@ -62,7 +62,7 @@
62
62
  <a @click="googleLogin"
63
63
  class="button-center button button-90 google-button pointer ">
64
64
  <img src="https://cdn.tapni.co/icons/g-logo.png" style="position: absolute; margin-left: -9px; padding: 8px 0; height: 100%;"/>
65
- <span v-if="!googleLoad">{{ssoLang[this.appLang].sign_up_with}} Google</span>
65
+ <span v-if="!googleLoad">{{ssoLang[this.appLanguage].sign_up_with}} Google</span>
66
66
  <span v-else class="button--loading button__loader"></span>
67
67
  </a>
68
68
 
@@ -71,7 +71,7 @@
71
71
  @click="facebookLogin"
72
72
  class="button-center button button-90 google-button pointer">
73
73
  <img src="https://cdn.tapni.co/icons/facebook-blue.png" style="position: absolute; margin-left: -10px; padding: 10px 0; height: 100%;"/>
74
- <span v-if="!facebookLoad">{{ssoLang[this.appLang].sign_up_with}} Facebook</span>
74
+ <span v-if="!facebookLoad">{{ssoLang[this.appLanguage].sign_up_with}} Facebook</span>
75
75
  <span v-else class="button--loading button__loader"></span>
76
76
  </a>
77
77
 
@@ -79,23 +79,23 @@
79
79
  <a @click="emailLogin = true" v-if="!emailLogin"
80
80
  class="button-center button button-90 google-button pointer">
81
81
  <img src="https://cdn.tapni.co/icons/mail.png" style="position: absolute; margin-left: -8px; padding: 12px 0; height: 100%;"/>
82
- <span>{{ssoLang[this.appLang].sign_up_with}} Email</span>
82
+ <span>{{ssoLang[this.appLanguage].sign_up_with}} Email</span>
83
83
  </a>
84
84
 
85
85
  <div class="decoration decoration-lines-thin no-bottom"></div>
86
86
 
87
87
  <p class="close-text center-text half-top color-black">
88
- {{ssoLang[this.appLang].terms_by_registering}} <br>
89
- <a class="" href="https://tapni.co/policies/terms-of-service">{{ssoLang[this.appLang].terms_of_service}}</a> {{ssoLang[this.appLang].and}} <a href="https://tapni.co/policies/privacy-policy">{{ssoLang[this.appLang].privacy_policy}}</a>
88
+ {{ssoLang[this.appLanguage].terms_by_registering}} <br>
89
+ <a class="" href="https://tapni.co/policies/terms-of-service">{{ssoLang[this.appLanguage].terms_of_service}}</a> {{ssoLang[this.appLanguage].and}} <a href="https://tapni.co/policies/privacy-policy">{{ssoLang[this.appLanguage].privacy_policy}}</a>
90
90
  </p>
91
91
  <div class="decoration decoration-lines-thin no-bottom"></div>
92
92
  <div v-if="!isModal" class="page-login-links">
93
- <router-link class="create float-right" to="/verify">{{ssoLang[this.appLang].verify_account}}</router-link>
94
- <router-link class="forgot float-left" to="/login">{{ssoLang[this.appLang].sign_in}}</router-link>
93
+ <router-link class="create float-right" to="/verify">{{ssoLang[this.appLanguage].verify_account}}</router-link>
94
+ <router-link class="forgot float-left" to="/login">{{ssoLang[this.appLanguage].sign_in}}</router-link>
95
95
  <div class="clear"></div>
96
96
  </div>
97
97
  <div v-else class="page-login-links" @click="loginAccountModal">
98
- <a class="forgot center-text pointer small-top">{{ssoLang[this.appLang].or}} <br> {{ssoLang[this.appLang].sign_in_with_new}}</a>
98
+ <a class="forgot center-text pointer small-top">{{ssoLang[this.appLanguage].or}} <br> {{ssoLang[this.appLanguage].sign_in_with_new}}</a>
99
99
  <div class="clear"></div>
100
100
  </div>
101
101
  </form>
@@ -160,10 +160,10 @@ export default {
160
160
  },
161
161
  methods: {
162
162
  async submit() {
163
- if (this.password.length < 8) return this.errorSnack(this.ssoLang[this.appLang].password_8_chars);
164
- if (this.password.search(/[a-z]/) < 0) return this.errorSnack(this.ssoLang[this.appLang].password_least_one_lowercase);
165
- if (this.password.search(/[A-Z]/) < 0) return this.errorSnack(this.ssoLang[this.appLang].password_least_one_uppercase);
166
- if (this.password.search(/[0-9]/) < 0) return this.errorSnack(this.ssoLang[this.appLang].password_least_one_number);
163
+ if (this.password.length < 8) return this.errorSnack(this.ssoLang[this.appLanguage].password_8_chars);
164
+ if (this.password.search(/[a-z]/) < 0) return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_lowercase);
165
+ if (this.password.search(/[A-Z]/) < 0) return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_uppercase);
166
+ if (this.password.search(/[0-9]/) < 0) return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_number);
167
167
 
168
168
  if (this.submitted) return
169
169
  this.submitted = true
@@ -187,8 +187,8 @@ export default {
187
187
  if (response.data.message === 'SUCCESS_REGISTER') {
188
188
  if (this.isModal) EventBus.$emit('ssoEvent', {name: 'toggleAddAccountModalVerify', data: false})
189
189
  else this.$router.push('/verify')
190
- this.successSnack(this.ssoLang[this.appLang].register_success);
191
- this.formButtonText = this.ssoLang[this.appLang].check_your_inbox
190
+ this.successSnack(this.ssoLang[this.appLanguage].register_success);
191
+ this.formButtonText = this.ssoLang[this.appLanguage].check_your_inbox
192
192
  } else if (response.data.message === 'SUCCESS_LOGIN') {
193
193
  if (this.display === 'npm') {
194
194
  await this.loginSetup({ ...response, isModal: data.isModal });
@@ -1,38 +1,38 @@
1
1
  <template>
2
2
  <form v-if="!passwordChange" class="page-login content-boxed content-boxed-padding" @submit.prevent="resetEmail" autocomplete="on">
3
- <h3 class="bold no-bottom center-text" style="margin-top: 63px;">{{ssoLang[this.appLang].reset_password}}</h3>
3
+ <h3 class="bold no-bottom center-text" style="margin-top: 63px;">{{ssoLang[this.appLanguage].reset_password}}</h3>
4
4
  <p class="half-bottom small-top center-text color-black"></p>
5
5
  <div class="page-login-field half-top color-black">
6
6
  <i style="padding-top: 15px; margin-left: 10px;">
7
7
  <img src="https://cdn.tapni.co/icons/mail.png" class="responsive-image" style="width: 80%;">
8
8
  </i>
9
- <input id="emailInput" v-model="email" @keydown.space.prevent type="email" :placeholder="ssoLang[this.appLang].email" required>
9
+ <input id="emailInput" v-model="email" @keydown.space.prevent type="email" :placeholder="ssoLang[this.appLanguage].email" required>
10
10
  <em></em>
11
11
  </div>
12
12
  <button type="submit" class="button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top">
13
- <span v-if="!submitted" class="uppercase">{{ssoLang[this.appLang].reset_password}}</span>
13
+ <span v-if="!submitted" class="uppercase">{{ssoLang[this.appLanguage].reset_password}}</span>
14
14
  <span v-else class="button--loading button__loader"></span>
15
15
  </button>
16
16
  <div class="decoration decoration-lines-thin no-bottom half-top"></div>
17
17
  <p class="close-text center-text half-top color-black">
18
- <span v-html="ssoLang[this.appLang].reset_password_p1"></span><a :href="'mailto:support@tapni.co?subject=' + ssoLang[this.appLang].password_reset_t"> support@tapni.co</a>
18
+ <span v-html="ssoLang[this.appLanguage].reset_password_p1"></span><a :href="'mailto:support@tapni.co?subject=' + ssoLang[this.appLanguage].password_reset_t"> support@tapni.co</a>
19
19
  </p>
20
20
  <div class="decoration decoration-lines-thin no-bottom half-top"></div>
21
21
 
22
22
  <div class="page-login-links">
23
- <router-link class="create float-right" to="/verify">{{ssoLang[this.appLang].verify_account}}</router-link>
24
- <router-link class="forgot float-left" to="/login">{{ssoLang[this.appLang].sign_in}}</router-link>
23
+ <router-link class="create float-right" to="/verify">{{ssoLang[this.appLanguage].verify_account}}</router-link>
24
+ <router-link class="forgot float-left" to="/login">{{ssoLang[this.appLanguage].sign_in}}</router-link>
25
25
  <div class="clear"></div>
26
26
  </div>
27
27
  </form>
28
28
  <form v-else class="page-login content-boxed content-boxed-padding" @submit.prevent="changePw">
29
- <h3 class="bold no-bottom center-text" style="margin-top: 63px;">{{ssoLang[this.appLang].password_change}}</h3>
30
- <p class="half-bottom small-top center-text color-black">{{ssoLang[this.appLang].password_new}}</p>
29
+ <h3 class="bold no-bottom center-text" style="margin-top: 63px;">{{ssoLang[this.appLanguage].password_change}}</h3>
30
+ <p class="half-bottom small-top center-text color-black">{{ssoLang[this.appLanguage].password_new}}</p>
31
31
  <div class="page-login-field half-top">
32
32
  <i style="padding-top: 15px">
33
33
  <img src="https://cdn.tapni.co/icons/padlock.png" class="responsive-image" style="width: 50%;">
34
34
  </i>
35
- <input v-model="password" :type="revealPassword ? 'text' : 'password'" :placeholder="ssoLang[this.appLang].password" required>
35
+ <input v-model="password" :type="revealPassword ? 'text' : 'password'" :placeholder="ssoLang[this.appLanguage].password" required>
36
36
  <em @click="revealPassword = !revealPassword">
37
37
  <img v-show="!revealPassword" src="https://cdn.tapni.co/icons/reveal-password.png" class="responsive-image password-reveal-icon">
38
38
  <img v-show="revealPassword" src="https://cdn.tapni.co/icons/hide-password.png" class="responsive-image password-reveal-icon">
@@ -42,20 +42,20 @@
42
42
  <i style="padding-top: 15px">
43
43
  <img src="https://cdn.tapni.co/icons/padlock.png" class="responsive-image" style="width: 50%;">
44
44
  </i>
45
- <input v-model="passwordRepeat" :type="revealPassword2 ? 'text' : 'password'" :placeholder="ssoLang[this.appLang].password_repeat" required>
45
+ <input v-model="passwordRepeat" :type="revealPassword2 ? 'text' : 'password'" :placeholder="ssoLang[this.appLanguage].password_repeat" required>
46
46
  <em @click="revealPassword2 = !revealPassword2">
47
47
  <img v-show="!revealPassword2" src="https://cdn.tapni.co/icons/reveal-password.png" class="responsive-image password-reveal-icon">
48
48
  <img v-show="revealPassword2" src="https://cdn.tapni.co/icons/hide-password.png" class="responsive-image password-reveal-icon">
49
49
  </em>
50
50
  </div>
51
51
  <button type="submit" class="button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top">
52
- <span v-if="!submitted" class="uppercase">{{ssoLang[this.appLang].password_change}}</span>
52
+ <span v-if="!submitted" class="uppercase">{{ssoLang[this.appLanguage].password_change}}</span>
53
53
  <span v-else class="button--loading button__loader"></span>
54
54
  </button>
55
55
 
56
56
  <div class="decoration decoration-lines-thin no-bottom half-top"></div>
57
57
  <p class="close-text center-text half-top color-black">
58
- <span v-html="ssoLang[this.appLang].reset_password_p2"></span> <a :href="'mailto:support@tapni.co?subject=' + ssoLang[this.appLang].password_reset_t"> support@tapni.co</a>
58
+ <span v-html="ssoLang[this.appLanguage].reset_password_p2"></span> <a :href="'mailto:support@tapni.co?subject=' + ssoLang[this.appLanguage].password_reset_t"> support@tapni.co</a>
59
59
  </p>
60
60
  </form>
61
61
  </template>
@@ -115,8 +115,8 @@ export default {
115
115
  },
116
116
  async changePw() {
117
117
  // if (this.captcha === '') return this._vm.errorHandler({ message: 'Please select recaptcha' });
118
- if (this.code.length !== 6) return this.errorSnack(this.ssoLang[this.appLang].invalid_code);
119
- if (this.password !== this.passwordRepeat) return this.errorSnack(this.ssoLang[this.appLang].password_not_match);
118
+ if (this.code.length !== 6) return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);
119
+ if (this.password !== this.passwordRepeat) return this.errorSnack(this.ssoLang[this.appLanguage].password_not_match);
120
120
 
121
121
  if (this.submitted) return
122
122
  this.submitted = true
@@ -136,7 +136,7 @@ export default {
136
136
  this.submitted = false
137
137
  if (success === true) {
138
138
  this.$router.push('/login');
139
- this.successSnack(this.ssoLang[this.appLang].password_reseted_success);
139
+ this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success);
140
140
  }
141
141
  },
142
142
  },
@@ -5,41 +5,41 @@
5
5
  <img src="https://cdn.tapni.co/icons/down-arrow.png" class="responsive-image" style="width: 35%;"/>
6
6
  </i>
7
7
  </a>
8
- <h1 class="bold no-bottom center-text" style="margin-top: 63px;">{{ssoLang[this.appLang].verify_account}}</h1>
8
+ <h1 class="bold no-bottom center-text" style="margin-top: 63px;">{{ssoLang[this.appLanguage].verify_account}}</h1>
9
9
  <p class="half-bottom half-top center-text color-black"></p>
10
10
  <div class="page-login-field half-top">
11
11
  <i style="padding-top: 15px; margin-left: 10px;">
12
12
  <img src="https://cdn.tapni.co/icons/mail.png" class="responsive-image" style="width: 80%;">
13
13
  </i>
14
- <input id="emailInput" v-model="email" @keydown.space.prevent type="email" :placeholder="ssoLang[this.appLang].email" required>
14
+ <input id="emailInput" v-model="email" @keydown.space.prevent type="email" :placeholder="ssoLang[this.appLanguage].email" required>
15
15
  <em></em>
16
16
  </div>
17
17
  <div class="page-login-field half-top">
18
18
  <i style="padding-top: 15px; margin-left: 10px;">
19
19
  <img src="https://cdn.tapni.co/icons/password2.png" class="responsive-image" style="width: 100%;">
20
20
  </i>
21
- <input id="codeInput" v-model="code" @keydown.space.prevent type="tel" :placeholder="ssoLang[this.appLang].code" required>
21
+ <input id="codeInput" v-model="code" @keydown.space.prevent type="tel" :placeholder="ssoLang[this.appLanguage].code" required>
22
22
  <em></em>
23
23
  </div>
24
24
  <button type="submit" class="button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top">
25
- <span v-if="!submitted" class="uppercase">{{ssoLang[this.appLang].verify_account}}</span>
25
+ <span v-if="!submitted" class="uppercase">{{ssoLang[this.appLanguage].verify_account}}</span>
26
26
  <span v-else class="button--loading button__loader"></span>
27
27
  </button>
28
28
  <div class="decoration decoration-lines-thin no-bottom"></div>
29
29
 
30
30
  <p class="close-text center-text half-top color-black">
31
- <span v-html="ssoLang[this.appLang].verify_account_p1"></span>
31
+ <span v-html="ssoLang[this.appLanguage].verify_account_p1"></span>
32
32
  <a href="mailto:support@tapni.co?subject=Email Verification"> support@tapni.co</a>
33
33
  </p>
34
34
 
35
35
  <div class="decoration decoration-lines-thin no-bottom"></div>
36
36
  <div v-if="!isModal" class="page-login-links">
37
- <router-link class="create float-right" to="/register">{{ssoLang[this.appLang].register}}</router-link>
38
- <router-link class="forgot float-left" to="/login">{{ssoLang[this.appLang].sign_in}}</router-link>
37
+ <router-link class="create float-right" to="/register">{{ssoLang[this.appLanguage].register}}</router-link>
38
+ <router-link class="forgot float-left" to="/login">{{ssoLang[this.appLanguage].sign_in}}</router-link>
39
39
  <div class="clear"></div>
40
40
  </div>
41
41
  <div v-else class="page-login-links" @click="registerAccountModal">
42
- <a class="forgot center-text pointer small-top">{{ssoLang[this.appLang].or}} <br> {{ssoLang[this.appLang].create_new_account}}</a>
42
+ <a class="forgot center-text pointer small-top">{{ssoLang[this.appLanguage].or}} <br> {{ssoLang[this.appLanguage].create_new_account}}</a>
43
43
  <div class="clear"></div>
44
44
  </div>
45
45
  </form>
@@ -95,7 +95,7 @@ export default {
95
95
  async submit() {
96
96
  // if (this.captcha === '') return this._vm.errorHandler({ message: 'Please select recaptcha' });
97
97
  if (this.code.length !== 6) {
98
- return this.errorSnack(this.ssoLang[this.appLang].invalid_code);
98
+ return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);
99
99
  }
100
100
 
101
101
  this.email = this.email.trim()
@@ -115,7 +115,7 @@ export default {
115
115
  if (response && response.data && response.data.success === true) {
116
116
  if (this.action === 'reset') {
117
117
  this.$router.push('/reset?c=' + this.code + '&e=' + this.email)
118
- this.successSnack(this.ssoLang[this.appLang].verify_account_success)
118
+ this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)
119
119
  }
120
120
  if (this.action === 'verify') {
121
121
  if (this.isModal) {
@@ -127,7 +127,7 @@ export default {
127
127
  this.getLoggedInAccounts()
128
128
  this.$storage.verifyEmail = '';
129
129
  this.$router.push('/' + response.data.data.username + '#edit')
130
- this.successSnack(this.ssoLang[this.appLang].verify_account_success2)
130
+ this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2)
131
131
  }
132
132
  } else this.submitted = false
133
133
 
@@ -3,14 +3,14 @@
3
3
  <video id="tapniVideo" muted loop playsinline width="350" style="margin: 0 auto; max-width: 100%; margin-top: 63px; overflow: hidden;" :autoplay="isNative">
4
4
  <source src="https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4" type="video/mp4">
5
5
  </video>
6
- <h1 class="bold full-top no-bottom center-text">{{ssoLang[this.appLang].welcome}}</h1>
7
- <p class="full-bottom half-top center-text color-black font-16">{{ssoLang[this.appLang].welcome_p1}}</p>
6
+ <h1 class="bold full-top no-bottom center-text">{{ssoLang[this.appLanguage].welcome}}</h1>
7
+ <p class="full-bottom half-top center-text color-black font-16">{{ssoLang[this.appLanguage].welcome_p1}}</p>
8
8
  <router-link v-if="false" to="/help" class="button-center button button-90 google-button pointer edit-shadow full-top full-bottom">
9
- <span> {{ssoLang[this.appLang].how_it_works}}? </span>
9
+ <span> {{ssoLang[this.appLanguage].how_it_works}}? </span>
10
10
  </router-link>
11
11
  <div v-if="false" class="decoration decoration-lines-thin full-top"></div>
12
12
  <router-link to="register" exact class="button-center button button-90 google-button bg-tapni-grey pointer">
13
- <span> {{ssoLang[this.appLang].create_account}} </span>
13
+ <span> {{ssoLang[this.appLanguage].create_account}} </span>
14
14
  </router-link>
15
15
  <!--
16
16
  <button @click="test" class="button-center button button-90 google-button bg-tapni-grey pointer">
@@ -18,7 +18,7 @@
18
18
  </button>
19
19
  -->
20
20
  <div class="page-login-links center-text">
21
- <router-link to="/login">{{ssoLang[this.appLang].already_registered}}? <b>{{ssoLang[this.appLang].sign_in}}</b></router-link>
21
+ <router-link to="/login">{{ssoLang[this.appLanguage].already_registered}}? <b>{{ssoLang[this.appLanguage].sign_in}}</b></router-link>
22
22
  <div class="clear"></div>
23
23
  </div>
24
24
  <div v-if=(!this.isNative) style="display: flex; flex-direction: row; justify-content: space-around; width: 90%; margin: 0 auto; margin-top: 40px;" >