Commit beb43e05 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Fixed default for institution. Added all the user fields to the session.

parent 3c7e6aa1
...@@ -60,8 +60,17 @@ class Session { ...@@ -60,8 +60,17 @@ class Session {
'id' => 0, 'id' => 0,
'username' => '', 'username' => '',
'password' => '', 'password' => '',
'institution' => 'mahara',
'passwordchange' => false, 'passwordchange' => false,
'institution' => 'mahara' 'deleted' => false,
'expiry' => 0,
'lastlogin' => 0,
'staff' => false,
'admin' => false,
'firstname' => '',
'lastname' => '',
'prefname' => '',
'email' => ''
); );
// Resume an existing session if required // Resume an existing session if required
if (isset($_COOKIE['PHPSESSID'])) { if (isset($_COOKIE['PHPSESSID'])) {
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true" /> <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true" />
<FIELD NAME="username" TYPE="char" LENGTH="30" NOTNULL="true" /> <FIELD NAME="username" TYPE="char" LENGTH="30" NOTNULL="true" />
<FIELD NAME="password" TYPE="char" LENGTH="40" NOTNULL="true" /> <FIELD NAME="password" TYPE="char" LENGTH="40" NOTNULL="true" />
<FIELD NAME="institution" TYPE="char" LENGTH="255" NOTNULL="true"/> <FIELD NAME="institution" TYPE="char" LENGTH="255" NOTNULL="true" DEFAULT="mahara"/>
<FIELD NAME="salt" TYPE="char" LENGTH="8" /> <FIELD NAME="salt" TYPE="char" LENGTH="8" />
<FIELD NAME="passwordchange" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" /> <FIELD NAME="passwordchange" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" />
<FIELD NAME="deleted" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" /> <FIELD NAME="deleted" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment