Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions assets/js/hubmanaged.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use strict";

// requires newsletter.js
const VERIFY_EMAIL_URL = 'https://api.staging.cryptomator.org/connect/email/verify';
const REQUEST_HUB_MANAGED_URL = LEGACY_STORE_URL + '/hub/request-managed';
const VALIDATE_HUB_MANAGED_REQUEST_URL = LEGACY_STORE_URL + '/hub/validate-managed-request';

Expand Down Expand Up @@ -105,9 +106,14 @@ class HubManaged {
this._feedbackData.inProgress = true;
this._feedbackData.errorMessage = '';
$.ajax({
url: REQUEST_HUB_MANAGED_URL,
url: VERIFY_EMAIL_URL, // REQUEST_HUB_MANAGED_URL,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we delete REQUEST_HUB_MANAGED_URL?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, as soon as we have a plan for how email verification shall be implemented on the frontend. As noted above, this is currently just a PoC

type: 'POST',
data: this._submitData
data: {
...this._submitData,
verifyCaptcha: this._submitData.captcha,
verifyEmail: this._submitData.email,
verifyTarget: 'hubmanaged'
}
}).done(_ => {
this.onRequestSucceeded();
if (this._submitData.acceptNewsletter) {
Expand Down