mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Update the sessions table to the new struture
This commit is contained in:
parent
2a54423cd2
commit
64d1aa3eb0
@ -67,13 +67,13 @@ insert into preferences values ('demo','theme','default','');
|
|||||||
insert into preferences values ('demo','tz_offset','0','');
|
insert into preferences values ('demo','tz_offset','0','');
|
||||||
|
|
||||||
CREATE TABLE sessions (
|
CREATE TABLE sessions (
|
||||||
sessionid varchar(255) NOT NULL,
|
session_id varchar(255) NOT NULL,
|
||||||
loginid varchar(20),
|
session_lid varchar(20),
|
||||||
passwd varchar(255),
|
session_pwd varchar(255),
|
||||||
ip varchar(255),
|
session_ip varchar(255),
|
||||||
logintime int(11),
|
session_logintime int(11),
|
||||||
dla int(11),
|
session_dla int(11),
|
||||||
UNIQUE sessionid (sessionid)
|
UNIQUE sessionid (session_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE app_sessions (
|
CREATE TABLE app_sessions (
|
||||||
|
@ -145,16 +145,16 @@ insert into preferences values ('demo','tz_offset','0','');
|
|||||||
--------------
|
--------------
|
||||||
|
|
||||||
CREATE TABLE sessions (
|
CREATE TABLE sessions (
|
||||||
sessionid varchar2(255) NOT NULL,
|
session_id varchar2(255) NOT NULL,
|
||||||
loginid varchar2(20),
|
session_lid varchar2(20),
|
||||||
passwd varchar2(255),
|
session_pwd varchar2(255),
|
||||||
ip varchar2(255),
|
session_ip varchar2(255),
|
||||||
logintime number(11),
|
session_logintime number(11),
|
||||||
dla number(11)
|
session_dla number(11)
|
||||||
);
|
);
|
||||||
|
|
||||||
create unique index sessions_sessionid
|
create unique index sessions_sessionid
|
||||||
on sessions (sessionid);
|
on sessions (session_id);
|
||||||
|
|
||||||
------------------
|
------------------
|
||||||
-- APP_SESSIONS --
|
-- APP_SESSIONS --
|
||||||
|
@ -51,13 +51,13 @@ create table groups (
|
|||||||
insert into groups (group_name) values ('Default');
|
insert into groups (group_name) values ('Default');
|
||||||
|
|
||||||
create table sessions (
|
create table sessions (
|
||||||
sessionid varchar(255),
|
session_id varchar(255),
|
||||||
loginid varchar(20),
|
session_lid varchar(20),
|
||||||
passwd varchar(255),
|
session_pwd varchar(255),
|
||||||
ip varchar(255),
|
session_ip varchar(255),
|
||||||
logintime int,
|
session_logintime int,
|
||||||
dla int,
|
session_dla int,
|
||||||
unique(sessionid)
|
unique(session_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE app_sessions (
|
CREATE TABLE app_sessions (
|
||||||
|
@ -76,8 +76,8 @@ if (! $submit) {
|
|||||||
|
|
||||||
// Since they are logged in, we need to change the password in sessions
|
// Since they are logged in, we need to change the password in sessions
|
||||||
// in case they decied to check there mail.
|
// in case they decied to check there mail.
|
||||||
$phpgw->db->query("update sessions set passwd='" . $phpgw->common->encrypt($n_passwd)
|
$phpgw->db->query("update sessions set session_pwd='" . $phpgw->common->encrypt($n_passwd)
|
||||||
. "' where loginid='" . $phpgw_info["user"]["userid"] . "'");
|
. "' where session_lid='" . $phpgw_info["user"]["userid"] . "'");
|
||||||
|
|
||||||
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"]
|
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"]
|
||||||
. "/preferences/","cd=18"));
|
. "/preferences/","cd=18"));
|
||||||
|
Loading…
Reference in New Issue
Block a user