--- lbbs/include/login.h 2025/05/04 14:54:55 1.2 +++ lbbs/include/login.h 2025/06/07 06:16:25 1.7 @@ -1,16 +1,15 @@ /*************************************************************************** login.h - description ------------------- - begin : Wed Mar 16 2004 - copyright : (C) 2005 by Leaflet - email : leaflet@leafok.com + Copyright : (C) 2004-2025 by Leaflet + Email : leaflet@leafok.com ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * + * the Free Software Foundation; either version 3 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ @@ -18,15 +17,17 @@ #ifndef _LOGIN_H_ #define _LOGIN_H_ -#include +#include + +#define BBS_login_retry_times 3 extern void login_fail(); -extern int bbs_login(); +extern int bbs_login(MYSQL *db); -extern int check_user(MYSQL *db, char *username, char *password); +extern int check_user(MYSQL *db, const char *username, const char *password); -extern int load_user_info(MYSQL *db, long int BBS_uid); +extern int load_user_info(MYSQL *db, int BBS_uid); extern int load_guest_info(MYSQL *db);