geer-builder 1.2.841 → 1.2.843

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.
Files changed (2) hide show
  1. package/GLogin.vue +89 -68
  2. package/package.json +1 -1
package/GLogin.vue CHANGED
@@ -105,7 +105,8 @@ export default
105
105
  mbot:Boolean,
106
106
  show_pass_button:Boolean,
107
107
  new_create_account_form:Boolean,
108
- is_heartzone:Boolean
108
+ is_heartzone:Boolean,
109
+ is_adspro:Boolean
109
110
 
110
111
  },
111
112
  components: { GRegistration,GForgotPassword },
@@ -187,7 +188,17 @@ export default
187
188
  },
188
189
  openRegistration()
189
190
  {
190
- this.is_registration_dialog= true;
191
+ if(this.is_adspro)
192
+ {
193
+ const baseUrl = `${window.location.protocol}//${window.location.host}`;
194
+ const invitePath = '#/invite/REFCOMPANYHEAD';
195
+ const fullUrl = `${baseUrl}/${invitePath}`;
196
+ window.location.href = fullUrl;
197
+ }
198
+ else
199
+ {
200
+ this.is_registration_dialog= true;
201
+ }
191
202
  },
192
203
  toggleShowPass()
193
204
  {
@@ -195,92 +206,102 @@ export default
195
206
  },
196
207
  async submitLogin()
197
208
  {
198
-
199
209
  /* start login */
200
210
  const AccountClass = new FAccountClass();
201
211
  let disable_login = false;
202
212
  let merchant_only = false;
203
- try
213
+ if(this.form_data.email)
204
214
  {
205
- if(!this.is_submitting)
215
+ try
206
216
  {
207
- this.is_submitting = true;
208
-
209
- let slot_info = await this.db_slot.get(this.form_data.email.toUpperCase());
210
-
211
- if(slot_info)
212
- {
213
- this.form_data.email = slot_info.owner_info.email;
214
- }
215
-
216
- if(this.public_settings.hasOwnProperty("login_update_auth") && this.public_settings.login_update_auth == true)
217
+ if(!this.is_submitting)
217
218
  {
218
- let update = await this.$_fbCall('memberUpdateAuth', this.form_data);
219
- }
220
-
221
- let disable_verified = false;
222
- if(this.public_settings.hasOwnProperty("disable_login_verified") && this.public_settings.disable_login_verified == true)
223
- {
224
- disable_verified = true;
225
- }
226
-
227
- if(this.public_settings.hasOwnProperty("merchant_login_only") && this.public_settings.merchant_login_only == true)
228
- {
229
- merchant_only = true;
230
- }
231
-
232
- if(this.public_settings.hasOwnProperty("functions") && this.public_settings.functions.login == false)
233
- {
234
- disable_login = true;
235
- }
236
-
237
- if(disable_login)
238
- {
239
- this.$q.dialog(
219
+ this.is_submitting = true;
220
+
221
+ let slot_info = await this.db_slot.get(this.form_data.email.toUpperCase());
222
+
223
+ if(slot_info)
240
224
  {
241
- title: 'Ann Error Has Occured',
242
- message: 'Login is currently disabled.'
243
- });
244
- }
245
- else
246
- {
247
- await AccountClass.signIn(this.form_data.email, this.form_data.password, disable_verified, merchant_only).then((res) =>
225
+ this.form_data.email = slot_info.owner_info.email;
226
+ }
227
+
228
+ if(this.public_settings.hasOwnProperty("login_update_auth") && this.public_settings.login_update_auth == true)
248
229
  {
249
- if(res.hasOwnProperty('verified') && !res.verified && disable_verified == false)
250
- {
251
- this.is_resend_dialog = true;
252
- }
253
- else
254
- {
255
- this.$emit('success', this.form_data);
256
- }
257
- // let login = this.$_fbCall('loginAuditTrail', this.form_data);
258
-
259
- }).catch((err) =>
230
+ let update = await this.$_fbCall('memberUpdateAuth', this.form_data);
231
+ }
232
+
233
+ let disable_verified = false;
234
+ if(this.public_settings.hasOwnProperty("disable_login_verified") && this.public_settings.disable_login_verified == true)
235
+ {
236
+ disable_verified = true;
237
+ }
238
+
239
+ if(this.public_settings.hasOwnProperty("merchant_login_only") && this.public_settings.merchant_login_only == true)
240
+ {
241
+ merchant_only = true;
242
+ }
243
+
244
+ if(this.public_settings.hasOwnProperty("functions") && this.public_settings.functions.login == false)
260
245
  {
261
- if(err == "auth/user-disabled")
246
+ disable_login = true;
247
+ }
248
+
249
+ if(disable_login)
250
+ {
251
+ this.$q.dialog(
262
252
  {
263
- this.$q.dialog({ title: `Invalid Login`, message: "This account is already deactivated." });
264
- }
265
- else
253
+ title: 'Ann Error Has Occured',
254
+ message: 'Login is currently disabled.'
255
+ });
256
+ }
257
+ else
258
+ {
259
+ await AccountClass.signIn(this.form_data.email, this.form_data.password, disable_verified, merchant_only).then((res) =>
266
260
  {
267
- this.$q.dialog({ title: `Invalid Login`, message: err });
268
- }
269
-
261
+ if(res.hasOwnProperty('verified') && !res.verified && disable_verified == false)
262
+ {
263
+ this.is_resend_dialog = true;
264
+ }
265
+ else
266
+ {
267
+ this.$emit('success', this.form_data);
268
+ }
269
+ // let login = this.$_fbCall('loginAuditTrail', this.form_data);
270
270
 
271
- });
271
+ }).catch((err) =>
272
+ {
273
+ if(err == "auth/user-disabled")
274
+ {
275
+ this.$q.dialog({ title: `Invalid Login`, message: "This account is already deactivated." });
276
+ }
277
+ else
278
+ {
279
+ this.$q.dialog({ title: `Invalid Login`, message: err });
280
+ }
281
+
282
+
283
+ });
284
+ }
285
+ this.is_submitting = false;
272
286
  }
287
+ }
288
+ catch (error)
289
+ {
273
290
  this.is_submitting = false;
291
+
292
+ this.$q.dialog(
293
+ {
294
+ title: 'Ann Error Has Occured',
295
+ message: error.message
296
+ });
274
297
  }
275
298
  }
276
- catch (error)
299
+ else
277
300
  {
278
- this.is_submitting = false;
279
-
280
301
  this.$q.dialog(
281
302
  {
282
- title: 'Ann Error Has Occured',
283
- message: error.message
303
+ title: 'An Error Has Occured',
304
+ message: "Please put an email"
284
305
  });
285
306
  }
286
307
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geer-builder",
3
- "version": "1.2.841",
3
+ "version": "1.2.843",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {