/[LeafOK_CVS]/lbbs/src/login.c
ViewVC logotype

Diff of /lbbs/src/login.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 by sysadm, Fri May 6 16:37:59 2005 UTC Revision 1.10 by sysadm, Tue Mar 10 06:09:34 2020 UTC
# Line 114  check_user (char *username, char *passwo Line 114  check_user (char *username, char *passwo
114    
115    sprintf (sql,    sprintf (sql,
116             "select UID,username,p_login from user_list where username='%s' "             "select UID,username,p_login from user_list where username='%s' "
117             "and (password=MD5('%s') or password=PASSWORD('%s')) and "             "and (password=MD5('%s') or password=SHA2('%s', 256)) and "
118             "enable", username, password, password);             "enable", username, password, password);
119    if (mysql_query (db, sql) != 0)    if (mysql_query (db, sql) != 0)
120      {      {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1