Allow blank SQL passwords (#4827)

* Allow blank password for log and login schema.
Thanks to @marky291!
This commit is contained in:
Mark Hester 2020-05-14 03:02:10 +01:00 committed by GitHub
parent 6ed4dbd6d9
commit f60da2b3fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ AccountDB* account_db_sql(void) {
safestrncpy(db->db_hostname, "127.0.0.1", sizeof(db->db_hostname));
db->db_port = 3306;
safestrncpy(db->db_username, "ragnarok", sizeof(db->db_username));
safestrncpy(db->db_password, "ragnarok", sizeof(db->db_password));
safestrncpy(db->db_password, "", sizeof(db->db_password));
safestrncpy(db->db_database, "ragnarok", sizeof(db->db_database));
safestrncpy(db->codepage, "", sizeof(db->codepage));
// other settings

View File

@ -93,7 +93,7 @@ char guild_storage_log_table[32] = "guild_storage_log";
char log_db_ip[64] = "127.0.0.1";
int log_db_port = 3306;
char log_db_id[32] = "ragnarok";
char log_db_pw[32] = "ragnarok";
char log_db_pw[32] = "";
char log_db_db[32] = "log";
Sql* logmysql_handle;