Commit 032f22e0 authored by Melissa Draper's avatar Melissa Draper
Browse files

Raise the password maximum length to 255 (bug #844488)



Passphrases are better than passwords. Make it possible to have a
passphrase longer than 40 characters. 255 varying characters ought
to be enough for anybody.

Change-Id: I9f9b78259abf029118ce804d95f04f42c3136a21
Signed-off-by: default avatarMelissa Draper <melissa@catalyst.net.nz>
parent 749e763b
......@@ -109,7 +109,7 @@
<FIELDS>
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
<FIELD NAME="username" TYPE="char" LENGTH="255" NOTNULL="true"/>
<FIELD NAME="password" TYPE="char" LENGTH="40" NOTNULL="true"/>
<FIELD NAME="password" TYPE="char" LENGTH="255" NOTNULL="true"/>
<FIELD NAME="salt" TYPE="char" LENGTH="8" NOTNULL="false"/>
<FIELD NAME="passwordchange" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0"/>
<FIELD NAME="active" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1"/>
......
......@@ -2695,5 +2695,12 @@ function xmldb_core_upgrade($oldversion=0) {
drop_field($table, $field);
}
if ($oldversion < 2011090900) {
$table = new XMLDBTable('usr');
$field = new XMLDBField('password');
$field->setAttributes(XMLDB_TYPE_CHAR, 255, null, XMLDB_NOTNULL);
change_field_type($table, $field, true, true);
}
return $status;
}
......@@ -28,7 +28,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2011083000;
$config->version = 2011090900;
$config->release = '1.5.0dev';
$config->minupgradefrom = 2008040200;
$config->minupgraderelease = '1.0.0 (release tag 1.0.0_RELEASE)';
......
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