Don't ask for password while editing accounts.

This commit is contained in:
Srinivasa Ragavan
2010-05-07 13:55:33 +05:30
parent cab50ae511
commit 4aa2552cb4

View File

@ -166,6 +166,8 @@ validate_identity (MailAccountView *view)
return ERROR_NO_FULLNAME;
if (!email || !*email)
return ERROR_NO_EMAIL;
if (view->original) /* We don't query/store pwd on edit. */
return 0;
if (!pwd || !*pwd)
return ERROR_NO_PASSWORD;