mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cloud storage: implement confirmation of email address via PIN
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a04f1fd133
commit
57507cfb93
3 changed files with 23 additions and 9 deletions
|
|
@ -1024,8 +1024,7 @@ fraction_t string_to_fraction(const char *str)
|
|||
int getCloudURL(QString &filename)
|
||||
{
|
||||
QString email = QString(prefs.cloud_storage_email);
|
||||
email.replace("@", "_at_");
|
||||
email.replace(QRegularExpression("[^a-zA-Z0-9._+-]"), "");
|
||||
email.replace(QRegularExpression("[^a-zA-Z0-9@._+-]"), "");
|
||||
if (email.isEmpty() || same_string(prefs.cloud_storage_password, ""))
|
||||
return report_error("Please configure Cloud storage email and password in the preferences");
|
||||
if (email != prefs.cloud_storage_email_encoded) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue