password not case-sensitive

This commit is contained in:
Enno Rehling 2007-12-13 10:04:53 +00:00
parent bda9885774
commit f3aa517447
2 changed files with 3 additions and 3 deletions

View File

@ -3986,7 +3986,7 @@ writepasswd(void)
F = cfopen(zText, "w"); F = cfopen(zText, "w");
if (F) { if (F) {
faction *f; faction *f;
puts("Schreibe Passwörter..."); puts("writing passwords...");
for (f = factions; f; f = f->next) { for (f = factions; f; f = f->next) {
fprintf(F, "%s:%s:%s:%s:%u\n", fprintf(F, "%s:%s:%s:%s:%u\n",

View File

@ -179,8 +179,8 @@ checkpasswd(const faction * f, const char * passwd, boolean shortp)
slist = slist->next; slist = slist->next;
} }
#endif #endif
if (strcmp(f->passw, passwd)==0) return true; if (unicode_utf8_strcasecmp(f->passw, passwd)==0) return true;
if (strcmp(f->override, passwd)==0) return true; if (unicode_utf8_strcasecmp(f->override, passwd)==0) return true;
return false; return false;
} }