-
Custom themes from third-parties can potentially betray your privacy. Only use themes from trusted sources.
+
Custom themes from third-parties can potentially betray your privacy. Only use themes from trusted sources.
+
Themes are currently disabled because they are not compatible between versions 1.16 and 2.0. In the next few weeks, all current themes will be deleted and then custom themes will be re-enabled. Please archive any custom theme code you wish to keep.
{{ 'CSS_THEME_CODE' | translate }}
{{ 'THEMES_ARE_LIMITED' | translate }}.
diff --git a/src/assets/locales/de_DE.json b/src/assets/locales/de_DE.json
index aaa27eb..205f8a5 100755
--- a/src/assets/locales/de_DE.json
+++ b/src/assets/locales/de_DE.json
@@ -8,8 +8,12 @@
"ADVANCED_SEARCH": "",
"ALIASES": "",
"ALIASES_SAVED": "",
+ "ALIGN_CENTER": "",
+ "ALIGN_LEFT": "",
+ "ALIGN_RIGHT": "",
"ALL": "",
"ALL_MESSAGES": "",
+ "AND_ALSO_ARCHIVE": "",
"ARCHIVE": "",
"ATTACHMENTS": "",
"AUTHENTICATION_LOGS": "",
@@ -56,6 +60,7 @@
"DEFAULT_COMPOSER_MODE": "",
"DEFAULT_LANGUAGE_CHANGED": "",
"DELETE": "",
+ "DELETE_ALL_CONTACTS": "",
"DELETE_CONTACT": "",
"DELETE_CONTACTS": "",
"DELETE_LABEL": "",
@@ -93,6 +98,7 @@
"FOLDER": "",
"FOLDER_EMPTIED": "",
"FORGOT_PASSWORD?": "",
+ "FORGOT_USERNAME?": "",
"FORWARD": "",
"FROM": "",
"FULLSCREEN": "",
@@ -199,7 +205,7 @@
"SHOW": "",
"SHOW_ALL": "",
"SHOW_IMAGES": "",
- "SIGN_UP": "",
+ "SIGN_UP_FOR_PROTONMAIL": "",
"SIGNATURE": "",
"SIGNATURE_CONTENT": "",
"SIGNATURE_SAVED": "",
@@ -242,6 +248,7 @@
"WARNING": "",
"WHAT_ARE_ALIASES?": "",
"WHAT_HAPPENED?": "",
+ "WHAT_IS_THE_DISPLAY_NAME?": "",
"WIZARD": "",
"WRONG_CURRENT_MAILBOX_PASSWORD": "",
"YES": "",
diff --git a/src/assets/locales/en_US.json b/src/assets/locales/en_US.json
index f4c5e27..a167f68 100755
--- a/src/assets/locales/en_US.json
+++ b/src/assets/locales/en_US.json
@@ -8,8 +8,12 @@
"ADVANCED_SEARCH": "Advanced Search",
"ALIASES": "Aliases",
"ALIASES_SAVED": "Aliases Saved",
+ "ALIGN_CENTER": "Align Center",
+ "ALIGN_LEFT": "Align Left",
+ "ALIGN_RIGHT": "Align Right",
"ALL": "All",
"ALL_MESSAGES": "All Messages",
+ "AND_ALSO_ARCHIVE": "And Also Archive",
"ARCHIVE": "Archive",
"ATTACHMENTS": "Attachments",
"AUTHENTICATION_LOGS": "Authentication Logs",
@@ -56,6 +60,7 @@
"DEFAULT_COMPOSER_MODE": "Default Composer Mode",
"DEFAULT_LANGUAGE_CHANGED": "Default Language Changed",
"DELETE": "Delete",
+ "DELETE_ALL_CONTACTS": "Delete All Contacts",
"DELETE_CONTACT": "Delete Contact",
"DELETE_CONTACTS": "Delete Contacts",
"DELETE_LABEL": "Delete Label",
@@ -93,6 +98,7 @@
"FOLDER": "Folder",
"FOLDER_EMPTIED": "Folder Emptied",
"FORGOT_PASSWORD?": "Forgot Password?",
+ "FORGOT_USERNAME?": "Forgot Username?",
"FORWARD": "Forward",
"FROM": "From",
"FULLSCREEN": "Fullscreen",
@@ -199,7 +205,7 @@
"SHOW": "Show",
"SHOW_ALL": "Show All",
"SHOW_IMAGES": "Show Images",
- "SIGN_UP": "Sign Up",
+ "SIGN_UP_FOR_PROTONMAIL": "Sign Up For ProtonMail",
"SIGNATURE": "Signature",
"SIGNATURE_CONTENT": "Signature Content",
"SIGNATURE_SAVED": "Signature Saved",
@@ -242,6 +248,7 @@
"WARNING": "Warning",
"WHAT_ARE_ALIASES?": "What Are Aliases?",
"WHAT_HAPPENED?": "What happened?",
+ "WHAT_IS_THE_DISPLAY_NAME?": "What Is The Display Name?",
"WIZARD": "Wizard",
"WRONG_CURRENT_MAILBOX_PASSWORD": "Wrong Current Mailbox Password",
"YES": "Yes",
diff --git a/src/assets/locales/es_ES.json b/src/assets/locales/es_ES.json
index aaa27eb..205f8a5 100755
--- a/src/assets/locales/es_ES.json
+++ b/src/assets/locales/es_ES.json
@@ -8,8 +8,12 @@
"ADVANCED_SEARCH": "",
"ALIASES": "",
"ALIASES_SAVED": "",
+ "ALIGN_CENTER": "",
+ "ALIGN_LEFT": "",
+ "ALIGN_RIGHT": "",
"ALL": "",
"ALL_MESSAGES": "",
+ "AND_ALSO_ARCHIVE": "",
"ARCHIVE": "",
"ATTACHMENTS": "",
"AUTHENTICATION_LOGS": "",
@@ -56,6 +60,7 @@
"DEFAULT_COMPOSER_MODE": "",
"DEFAULT_LANGUAGE_CHANGED": "",
"DELETE": "",
+ "DELETE_ALL_CONTACTS": "",
"DELETE_CONTACT": "",
"DELETE_CONTACTS": "",
"DELETE_LABEL": "",
@@ -93,6 +98,7 @@
"FOLDER": "",
"FOLDER_EMPTIED": "",
"FORGOT_PASSWORD?": "",
+ "FORGOT_USERNAME?": "",
"FORWARD": "",
"FROM": "",
"FULLSCREEN": "",
@@ -199,7 +205,7 @@
"SHOW": "",
"SHOW_ALL": "",
"SHOW_IMAGES": "",
- "SIGN_UP": "",
+ "SIGN_UP_FOR_PROTONMAIL": "",
"SIGNATURE": "",
"SIGNATURE_CONTENT": "",
"SIGNATURE_SAVED": "",
@@ -242,6 +248,7 @@
"WARNING": "",
"WHAT_ARE_ALIASES?": "",
"WHAT_HAPPENED?": "",
+ "WHAT_IS_THE_DISPLAY_NAME?": "",
"WIZARD": "",
"WRONG_CURRENT_MAILBOX_PASSWORD": "",
"YES": "",
diff --git a/src/assets/locales/fr_FR.json b/src/assets/locales/fr_FR.json
index af2969d..4e85691 100755
--- a/src/assets/locales/fr_FR.json
+++ b/src/assets/locales/fr_FR.json
@@ -8,8 +8,12 @@
"ADVANCED_SEARCH": "Advanced Search",
"ALIASES": "",
"ALIASES_SAVED": "Alias sauve",
+ "ALIGN_CENTER": "",
+ "ALIGN_LEFT": "",
+ "ALIGN_RIGHT": "",
"ALL": "Tous",
"ALL_MESSAGES": "Tous Les Messages",
+ "AND_ALSO_ARCHIVE": "",
"ARCHIVE": "Archive",
"ATTACHMENTS": "Pieces Jointes",
"AUTHENTICATION_LOGS": "",
@@ -56,6 +60,7 @@
"DEFAULT_COMPOSER_MODE": "",
"DEFAULT_LANGUAGE_CHANGED": "",
"DELETE": "Supprimer",
+ "DELETE_ALL_CONTACTS": "",
"DELETE_CONTACT": "",
"DELETE_CONTACTS": "",
"DELETE_LABEL": "",
@@ -93,6 +98,7 @@
"FOLDER": "Dossier",
"FOLDER_EMPTIED": "",
"FORGOT_PASSWORD?": "",
+ "FORGOT_USERNAME?": "",
"FORWARD": "Transferer",
"FROM": "De",
"FULLSCREEN": "",
@@ -199,7 +205,7 @@
"SHOW": "",
"SHOW_ALL": "",
"SHOW_IMAGES": "",
- "SIGN_UP": "",
+ "SIGN_UP_FOR_PROTONMAIL": "",
"SIGNATURE": "",
"SIGNATURE_CONTENT": "",
"SIGNATURE_SAVED": "",
@@ -242,6 +248,7 @@
"WARNING": "Attention",
"WHAT_ARE_ALIASES?": "",
"WHAT_HAPPENED?": "",
+ "WHAT_IS_THE_DISPLAY_NAME?": "",
"WIZARD": "Assistant",
"WRONG_CURRENT_MAILBOX_PASSWORD": "",
"YES": "Oui",
diff --git a/src/assets/locales/it_IT.json b/src/assets/locales/it_IT.json
index aaa27eb..205f8a5 100755
--- a/src/assets/locales/it_IT.json
+++ b/src/assets/locales/it_IT.json
@@ -8,8 +8,12 @@
"ADVANCED_SEARCH": "",
"ALIASES": "",
"ALIASES_SAVED": "",
+ "ALIGN_CENTER": "",
+ "ALIGN_LEFT": "",
+ "ALIGN_RIGHT": "",
"ALL": "",
"ALL_MESSAGES": "",
+ "AND_ALSO_ARCHIVE": "",
"ARCHIVE": "",
"ATTACHMENTS": "",
"AUTHENTICATION_LOGS": "",
@@ -56,6 +60,7 @@
"DEFAULT_COMPOSER_MODE": "",
"DEFAULT_LANGUAGE_CHANGED": "",
"DELETE": "",
+ "DELETE_ALL_CONTACTS": "",
"DELETE_CONTACT": "",
"DELETE_CONTACTS": "",
"DELETE_LABEL": "",
@@ -93,6 +98,7 @@
"FOLDER": "",
"FOLDER_EMPTIED": "",
"FORGOT_PASSWORD?": "",
+ "FORGOT_USERNAME?": "",
"FORWARD": "",
"FROM": "",
"FULLSCREEN": "",
@@ -199,7 +205,7 @@
"SHOW": "",
"SHOW_ALL": "",
"SHOW_IMAGES": "",
- "SIGN_UP": "",
+ "SIGN_UP_FOR_PROTONMAIL": "",
"SIGNATURE": "",
"SIGNATURE_CONTENT": "",
"SIGNATURE_SAVED": "",
@@ -242,6 +248,7 @@
"WARNING": "",
"WHAT_ARE_ALIASES?": "",
"WHAT_HAPPENED?": "",
+ "WHAT_IS_THE_DISPLAY_NAME?": "",
"WIZARD": "",
"WRONG_CURRENT_MAILBOX_PASSWORD": "",
"YES": "",
diff --git a/src/sass/mobile/_mobile-message-list.scss b/src/sass/mobile/_mobile-message-list.scss
index b74579b..c9dd18c 100755
--- a/src/sass/mobile/_mobile-message-list.scss
+++ b/src/sass/mobile/_mobile-message-list.scss
@@ -12,9 +12,6 @@
color: #000;
}
}
- &.starred {
- background: $starred;
- }
h4 {
word-break: break-word;
font-size: 14px;
@@ -40,4 +37,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/sass/partials/_bootstrap-custom.scss b/src/sass/partials/_bootstrap-custom.scss
index bc0f020..5078b00 100755
--- a/src/sass/partials/_bootstrap-custom.scss
+++ b/src/sass/partials/_bootstrap-custom.scss
@@ -42,6 +42,7 @@ body .input-group-addon {
display: block;
height: $row-height;
line-height: $row-height;
+ min-height: $row-height;
box-shadow: inset 0 -1px 0 #ccc, inset -1px 0 0 #ccc;
border: none;
border-radius: 0;
diff --git a/src/sass/partials/_email.scss b/src/sass/partials/_email.scss
index 60b68b4..13407b6 100755
--- a/src/sass/partials/_email.scss
+++ b/src/sass/partials/_email.scss
@@ -26,4 +26,28 @@ html.angular-squire-iframe {
text-decoration: underline;
color: $primary-color;
}
+ table {
+ display: table;
+ box-sizing: initial;
+ }
+ thead {
+ display: table-header-group;
+ box-sizing: initial;
+ }
+ tfoot {
+ display: table-footer-group;
+ box-sizing: initial;
+ }
+ tbody {
+ display: table-row-group;
+ box-sizing: initial;
+ }
+ tr {
+ display: table-row;
+ box-sizing: initial;
+ }
+ td {
+ display: table-cell;
+ box-sizing: initial;
+ }
}
diff --git a/src/sass/partials/_error-reporter.scss b/src/sass/partials/_error-reporter.scss
index 4d8e837..3632aef 100755
--- a/src/sass/partials/_error-reporter.scss
+++ b/src/sass/partials/_error-reporter.scss
@@ -27,7 +27,11 @@ error-reporter,
}
}
+.cg-notify-message.noclose {
+ pointer-events: none;
+}
+
.alert a {
text-decoration: underline;
-}
\ No newline at end of file
+}
diff --git a/src/sass/partials/_general-classes.scss b/src/sass/partials/_general-classes.scss
index 5b20571..c98786c 100755
--- a/src/sass/partials/_general-classes.scss
+++ b/src/sass/partials/_general-classes.scss
@@ -5,6 +5,9 @@
.bold {
font-weight: bold;
}
+.underline {
+ text-decoration: underline;
+}
.vcenter {
vertical-align: middle;
}
diff --git a/src/sass/partials/_message-list.scss b/src/sass/partials/_message-list.scss
index 50dd10f..8901ade 100755
--- a/src/sass/partials/_message-list.scss
+++ b/src/sass/partials/_message-list.scss
@@ -198,24 +198,6 @@ table.message-list {
}
}
}
- &.starred {
- background-color: $tr-starred;
- i.fa-paperclip,
- i.fa-clock-o,
- span.labels,
- td {
- background-color: $tr-starred;
- }
- &:hover,
- &:active {
- i.fa-paperclip,
- i.fa-clock-o,
- span.labels,
- td {
- background-color: $tr-starred-hovered;
- }
- }
- }
&.selected {
i.fa-paperclip,
i.fa-clock-o,
diff --git a/src/sass/partials/_message-view.scss b/src/sass/partials/_message-view.scss
index cdbe5f6..0d83272 100755
--- a/src/sass/partials/_message-view.scss
+++ b/src/sass/partials/_message-view.scss
@@ -16,7 +16,7 @@
#attachmentWrap {
overflow: auto;
max-height: (3*$row-height);
- background-color: #f2f2f2;
+ background-color: #f2f2f2;
}
#attachmentArea {
border-radius: 0;
@@ -144,9 +144,6 @@ ul.attachments {
font-weight: 700;
color: #000;
}
- &.starred {
- background: $starred;
- }
h1 {
margin: 0;
text-align: left;
diff --git a/src/static/donate.html b/src/static/donate.html
index 6e2af61..aec678a 100755
--- a/src/static/donate.html
+++ b/src/static/donate.html
@@ -13,7 +13,9 @@
-
Codestin Search App
+
Codestin Search App
+
+
diff --git a/src/static/index.html b/src/static/index.html
index c1bf8b7..8aabc93 100755
--- a/src/static/index.html
+++ b/src/static/index.html
@@ -13,7 +13,9 @@
-
Codestin Search App
+
Codestin Search App
+
+
diff --git a/src/static/pages/about.html b/src/static/pages/about.html
index 8236ce0..04ba03b 100755
--- a/src/static/pages/about.html
+++ b/src/static/pages/about.html
@@ -13,7 +13,9 @@
-
Codestin Search App
+
Codestin Search App
+
+
diff --git a/src/static/pages/faq.html b/src/static/pages/faq.html
index 6fc7729..704a7f1 100755
--- a/src/static/pages/faq.html
+++ b/src/static/pages/faq.html
@@ -36,38 +36,39 @@
+
Frequently Asked Questions
- How can ProtonMail tell if I entered the wrong decryption password without knowing my decryption password?
-
+ How can ProtonMail tell if I entered the wrong decryption password without knowing my decryption password?
+
ProtonMail also encrypts an unique string of characters using the same method used when we encrypt your data on your browser. When you attempt to unlock your mailbox, this string of characters is decrypted locally on your machine with the decryption password you supply. If the decrypted result does not match the unique string for your account, then we know your Mailbox Password is probably incorrect.
- Can I change my Username?
-
+ Can I change my Username?
+
Your username is your email address and cannot be changed. You can change your Display Name on the Settings page.
- I forgot my Mailbox Password, can you recover it for me?
-
+ I forgot my Mailbox Password, can you recover it for me?
+
Unfortunately, it is impossible for us to recover your Mailbox Password because we do NOT save this information on our servers. We never have access to your decryption password and as a result, we cannot recover something we don't have. The only option is to create a new account or lose all of your previous encrypted emails with a reset.
- Can I change or reset my Mailbox password?
-
+ Can I change or reset my Mailbox password?
+
With ProtonMail Beta Version >= 1.07, your Mailbox Password can be changed by you if you know the old one. The update happens in your browser so we don't have access to it. If you forget the Mailbox Password , we don't have the ability to recover it for you.
- What's the difference between my Login and Mailbox password?
-
+ What's the difference between my Login and Mailbox password?
+
ProtonMail uses a 2 password system to secure your account.
The first password is your Login Password and is sent to us so we can authenticate you and log you into our system.
The second password is your Mailbox Password and is not sent to us, it's only within your browser where the encryption and decryption takes place.
- Why does ProtonMail use 2 passwords?
-
+ Why does ProtonMail use 2 passwords?
+
ProtonMail uses a 2 password system to secure your account.
The first password is your Login Password and is sent to us so we can authenticate you and log you into our system.
The second password is your Mailbox Password and is not sent to us, it's only within your browser where the encryption and decryption takes place.
- Is ProtonMail incompatible with certain browser extensions?
-
+ Is ProtonMail incompatible with certain browser extensions?
+
Yes. ProtonMail has a unique login and encryption system that certain browser extensions are incompatible with.
While this list isn't complete, if you're having trouble logging in or viewing messages, try disabling these extensions if you have them.
@@ -77,8 +78,13 @@ Frequently Asked Questions
-
-
+
include "_footer.html"
\ No newline at end of file
diff --git a/src/static/pages/invite.html b/src/static/pages/invite.html
index 3b8248f..64968d9 100755
--- a/src/static/pages/invite.html
+++ b/src/static/pages/invite.html
@@ -13,7 +13,9 @@
-
Codestin Search App
+
Codestin Search App
+
+
@@ -102,7 +104,7 @@
Success!
request.setRequestHeader("x-pm-apiversion", "@@apiVersion");
request.setRequestHeader("Accept", "application/vnd.protonmail.v1+json");
},
- url: "/api/users/available/"+$('#username').val(),
+ url: "https://api.protonmail.ch/users/available/"+$('#username').val(),
success: function(msg) {
if (msg.Code===1000) {
if (msg.Available===1) {
@@ -132,7 +134,7 @@
Success!
request.setRequestHeader("x-pm-apiversion", "@@apiVersion");
request.setRequestHeader("Accept", "application/vnd.protonmail.v1+json");
},
- url: "/api/users/invite",
+ url: "https://api.protonmail.ch/users/invite",
data: JSON.stringify({
"Username": $('#username').val(),
"Email": $('#notification_email').val()
@@ -147,7 +149,7 @@
Success!
alert(msg.Error);
$('#invite-button').attr('disabled', false);
}
- console.log(msg);
+ // console.log(msg);
}
});
}
diff --git a/src/static/pages/join-us.html b/src/static/pages/join-us.html
index 1690428..e578dd3 100755
--- a/src/static/pages/join-us.html
+++ b/src/static/pages/join-us.html
@@ -13,7 +13,9 @@
-
Codestin Search App
+
Codestin Search App
+
+
diff --git a/src/static/pages/media.html b/src/static/pages/media.html
index 238c21b..97cfc89 100755
--- a/src/static/pages/media.html
+++ b/src/static/pages/media.html
@@ -13,7 +13,9 @@
-
Codestin Search App
+
Codestin Search App
+
+
diff --git a/src/static/pages/press.html b/src/static/pages/press.html
index 7faf75d..f4ec1bc 100755
--- a/src/static/pages/press.html
+++ b/src/static/pages/press.html
@@ -13,7 +13,9 @@
-
Codestin Search App
+
Codestin Search App
+
+
diff --git a/src/static/pages/privacy-policy.html b/src/static/pages/privacy-policy.html
index 62f3329..b0eebb3 100755
--- a/src/static/pages/privacy-policy.html
+++ b/src/static/pages/privacy-policy.html
@@ -13,7 +13,9 @@
-
Codestin Search App
+
Codestin Search App
+
+
diff --git a/src/static/pages/security-details.html b/src/static/pages/security-details.html
index 1047261..c871aed 100755
--- a/src/static/pages/security-details.html
+++ b/src/static/pages/security-details.html
@@ -13,7 +13,9 @@
-
Codestin Search App
+
Codestin Search App
+
+
diff --git a/src/static/pages/technical-details.html b/src/static/pages/technical-details.html
index b614d88..1457b3d 100755
--- a/src/static/pages/technical-details.html
+++ b/src/static/pages/technical-details.html
@@ -13,7 +13,9 @@
-
Codestin Search App
+
Codestin Search App
+
+
diff --git a/src/static/pages/terms-and-conditions.html b/src/static/pages/terms-and-conditions.html
index ecabbda..5db46f0 100755
--- a/src/static/pages/terms-and-conditions.html
+++ b/src/static/pages/terms-and-conditions.html
@@ -13,7 +13,9 @@
-
Codestin Search App
+
Codestin Search App
+
+
diff --git a/src/static/pages/why-protonmail.html b/src/static/pages/why-protonmail.html
index bb53755..dabdd1f 100755
--- a/src/static/pages/why-protonmail.html
+++ b/src/static/pages/why-protonmail.html
@@ -13,7 +13,9 @@
-
Codestin Search App
+
Codestin Search App
+
+
diff --git a/src/static/support.html b/src/static/support.html
index 6d0edad..ac39511 100755
--- a/src/static/support.html
+++ b/src/static/support.html
@@ -13,7 +13,9 @@
-
Codestin Search App
+
Codestin Search App
+
+
@@ -34,7 +36,8 @@
-
+
+
+
+
+
Support Request Sent!
+
We have your support request and will get back to you as soon as possible - usually within 1-2 days.
+
+
@@ -109,22 +109,30 @@
Support Form<
request.setRequestHeader("x-pm-apiversion", "@@apiVersion");
request.setRequestHeader("Accept", "application/vnd.protonmail.v1+json");
},
- url: "https://dev.protonmail.ch/api/users/invite",
+ url: "https://api.protonmail.ch/bugs",
data: JSON.stringify({
- "Username": $('#username').val(),
- "Email": $('#notification_email').val()
+ "OS": $('#bug_os').val(),
+ "OSVersion": "Unknown",
+ "Browser": $('#bug_browser').val(),
+ "BrowserExtensions": $('#bug_plugins').val(),
+ "Client": "Web",
+ "ClientVersion" : "2.0.0",
+ "Title": "Support Form Entry",
+ "Description": $('#bug_description').val(),
+ "Username": $('#bug_acc').val(),
+ "Email": $('#bug_email').val()
}),
success: function(msg) {
- if (msg.Code===1000) {
+ if (msg.Code==1000) {
// success
- $('#inviteSuccess').fadeIn();
- $('#inviteForm').hide();
+ $('#supportSuccess').fadeIn();
+ $('#supportForm').hide();
}
- else if (msg.Code!==undefined) {
+ else if (msg.Code!=undefined) {
alert(msg.Error);
$('#invite-button').attr('disabled', false);
}
- console.log(msg);
+ // console.log(msg);
}
});
}
diff --git a/src/static/username.html b/src/static/username.html
index 973f92f..59fbb38 100755
--- a/src/static/username.html
+++ b/src/static/username.html
@@ -13,7 +13,9 @@
- Codestin Search App
+ Codestin Search App
+
+
@@ -35,7 +37,8 @@
-
+
+
+
+
+
If you entered a valid notification email we will send you an email with your usernames in the next minute.
+
+
@@ -62,9 +70,9 @@
// disable button
$('#forgotUsername-button').attr('disabled', true);
- var formData = {
+ var formData = JSON.stringify({
NotificationEmail: email,
- };
+ });
// make api call
$.ajax({
@@ -75,18 +83,17 @@
request.setRequestHeader("x-pm-apiversion", "@@apiVersion");
request.setRequestHeader("Accept", "application/vnd.protonmail.v1+json");
},
- url: "/api/reset/username",
+ url: "https://api.protonmail.ch/reset/username",
data: formData,
success: function(msg) {
- if (msg.Code === 1000) {
- if (msg.Available === 1) {
- createInvite();
- }
+ if (msg.Code == 1000) {
+ $('#usernameSuccess').fadeIn();
+ $('#usernameForm').hide();
} else {
alert('Something went wrong.');
$('#forgotUsername-button').attr('disabled', false);
}
- console.log(msg);
+ // console.log(msg);
}
});
}