Improve cleanup script to give users 1 month after warning before removing their account. Move user related logic into the user class. Add columns to the user_list table to track whether the user was warned about inactivity and the datetime of the warning.
This commit is contained in:
@@ -3,13 +3,15 @@ use apidb;
|
||||
drop table if exists user_list;
|
||||
|
||||
create table user_list (
|
||||
stamp timestamp not null,
|
||||
userid int not null auto_increment,
|
||||
password text not null,
|
||||
realname text not null,
|
||||
email varchar(255) not null,
|
||||
created datetime not null,
|
||||
CVSrelease text,
|
||||
stamp timestamp not null,
|
||||
userid int not null auto_increment,
|
||||
password text not null,
|
||||
realname text not null,
|
||||
email varchar(255) not null,
|
||||
created datetime not null,
|
||||
inactivity_warn_stamp timestamp not null, /* the time we warned the user */
|
||||
inactivity_warned enum('true','false') NOT NULL default 'false', /* if true, we warned the user */
|
||||
CVSrelease text,
|
||||
unique key(userid),
|
||||
unique(email)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user