Commit 386f6771 authored by Méven Car's avatar Méven Car
Browse files

Consider empty email valid

Summary:
BUG: 411736
FIXED-IN: 5.18

Test Plan:
1. open system settings > account details > user manager
2. type an email address to your user account
3. click on "Apply" button, type your password and press enter/return to confirm
4. close the User Manager and reopen it
5. clear the email address field
6. Apply

The empty email is saved.

Reviewers: #plasma, ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26824
parent 9734f76c
......@@ -361,7 +361,7 @@ QString AccountInfo::cleanEmail(QString email)
bool AccountInfo::validateEmail(const QString& email) const
{
if (email.isEmpty()) {
return false;
return true;
}
QString strPatt = QStringLiteral("\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,63}\\b");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment