mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-05-12 02:01:34 +00:00
Don't print log when db password is ! (#673)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
parent
752988daa4
commit
5e6c0974e6
@ -847,8 +847,13 @@ validate_passwd_pbkdf2_sha256 (const char *passwd, const char *db_passwd)
|
||||
guint8 salt[SHA256_DIGEST_LENGTH];
|
||||
char hashed_passwd[SHA256_DIGEST_LENGTH*2+1];
|
||||
|
||||
if (g_strcmp0 (db_passwd, "!") == 0)
|
||||
return FALSE;
|
||||
|
||||
tokens = g_strsplit (db_passwd, "$", -1);
|
||||
if (!tokens || g_strv_length (tokens) != 4) {
|
||||
if (tokens)
|
||||
g_strfreev (tokens);
|
||||
ccnet_warning ("Invalide db passwd format %s.\n", db_passwd);
|
||||
return FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user