/[LeafOK_CVS]/lbbs/include/login.h
ViewVC logotype

Contents of /lbbs/include/login.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations)
Tue Nov 4 13:49:50 2025 UTC (4 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.13: +7 -15 lines
Content type: text/x-chdr
Update file header information comments

1 /* SPDX-License-Identifier: GPL-3.0-or-later */
2 /*
3 * login
4 * - user authentication and online status manager
5 *
6 * Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com>
7 */
8
9 #ifndef _LOGIN_H_
10 #define _LOGIN_H_
11
12 #include <mysql/mysql.h>
13
14 #define BBS_login_retry_times 3
15 #define BBS_allowed_login_failures_within_interval 10
16 #define BBS_login_failures_count_interval 10 // minutes
17 #define BBS_allowed_login_failures_per_account 3
18
19 extern void login_fail(void);
20
21 extern int bbs_login(void);
22
23 extern int check_user(const char *username, const char *password);
24
25 extern int load_user_info(MYSQL *db, int BBS_uid);
26
27 extern int load_guest_info(void);
28
29 extern int user_online_add(MYSQL *db);
30 extern int user_online_del(MYSQL *db);
31 extern int user_online_exp(MYSQL *db);
32
33 extern int user_online_update(const char *action);
34
35 #endif //_LOGIN_H_

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