File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"use strict" ;
22
33// requires newsletter.js
4+ const VERIFY_EMAIL_URL = 'https://api.staging.cryptomator.org/connect/email/verify' ;
45const REQUEST_HUB_MANAGED_URL = LEGACY_STORE_URL + '/hub/request-managed' ;
56const VALIDATE_HUB_MANAGED_REQUEST_URL = LEGACY_STORE_URL + '/hub/validate-managed-request' ;
67
@@ -105,9 +106,14 @@ class HubManaged {
105106 this . _feedbackData . inProgress = true ;
106107 this . _feedbackData . errorMessage = '' ;
107108 $ . ajax ( {
108- url : REQUEST_HUB_MANAGED_URL ,
109+ url : VERIFY_EMAIL_URL , // REQUEST_HUB_MANAGED_URL,
109110 type : 'POST' ,
110- data : this . _submitData
111+ data : {
112+ ...this . _submitData ,
113+ verifyCaptcha : this . _submitData . captcha ,
114+ verifyEmail : this . _submitData . email ,
115+ verifyTarget : 'hubmanaged'
116+ }
111117 } ) . done ( _ => {
112118 this . onRequestSucceeded ( ) ;
113119 if ( this . _submitData . acceptNewsletter ) {
You can’t perform that action at this time.
0 commit comments