Commit 7c0f7b8d authored by Matthew Pirocchi's avatar Matthew Pirocchi

Don't fail when Geary fails to save the password to the keyring: Closes #5256

parent 883e4557
......@@ -8,4 +8,5 @@ build/
/geary-mailer
/geary-console
*.xz
*.swp
......@@ -6,13 +6,13 @@
const string GEARY_USERNAME_PREFIX = "org.yorba.geary username:";
public static void keyring_save_password(string username, string password) {
public static bool keyring_save_password(string username, string password) {
string name = GEARY_USERNAME_PREFIX + username;
GnomeKeyring.Result res = GnomeKeyring.store_password_sync(GnomeKeyring.NETWORK_PASSWORD, null,
name, password, "user", name);
assert(res == GnomeKeyring.Result.OK);
return res == GnomeKeyring.Result.OK;
}
// Returns the password for the given username, or null if not set.
......
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