updated docs
[rlserver.git] / users.h
blobd2f6ff1c7f7bb7abf93448411cde432c2f68d8a0
1 #ifndef __USERS__
2 #define __USERS__
4 #define USER_NAME_LEN 16
5 #define USER_PASS_LEN 16
6 #define USER_EMAIL_LEN 32
8 #define MIN_USER_NAME_LEN 3
9 #define MIN_USER_PASS_LEN 4
11 typedef struct
13 int id;
14 char name[USER_NAME_LEN];
15 char pass[USER_PASS_LEN];
16 char email[USER_EMAIL_LEN];
17 } user;
20 int add_user (user *usr, const char *name, const char *pass, const char *email);
21 int check_user_login (user *usr, const char *name, const char *pass);
22 int change_password (int user_id, const char *pass);
25 #endif