forked from github/server
password not case-sensitive
This commit is contained in:
parent
bda9885774
commit
f3aa517447
2 changed files with 3 additions and 3 deletions
|
@ -3986,7 +3986,7 @@ writepasswd(void)
|
|||
F = cfopen(zText, "w");
|
||||
if (F) {
|
||||
faction *f;
|
||||
puts("Schreibe Passwörter...");
|
||||
puts("writing passwords...");
|
||||
|
||||
for (f = factions; f; f = f->next) {
|
||||
fprintf(F, "%s:%s:%s:%s:%u\n",
|
||||
|
|
|
@ -179,8 +179,8 @@ checkpasswd(const faction * f, const char * passwd, boolean shortp)
|
|||
slist = slist->next;
|
||||
}
|
||||
#endif
|
||||
if (strcmp(f->passw, passwd)==0) return true;
|
||||
if (strcmp(f->override, passwd)==0) return true;
|
||||
if (unicode_utf8_strcasecmp(f->passw, passwd)==0) return true;
|
||||
if (unicode_utf8_strcasecmp(f->override, passwd)==0) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue