Throw an exception if password hash would be truncated by DB
authorBrian Wolff <bawolff+wn@gmail.com>
Tue, 15 Nov 2016 06:09:24 +0000 (06:09 +0000)
committerBrian Wolff <bawolff+wn@gmail.com>
Tue, 15 Nov 2016 06:21:03 +0000 (06:21 +0000)
commite8589233bc3e0c776e2acf36761d3f9b4eb82f04
treec02daf9d83554f427dcbb95b7f443b9edcc0954a
parent6dbb8f2d787266078a803065c7483a8e7ca15d29
Throw an exception if password hash would be truncated by DB

DB uses a tinyblob field. With layered encrypted passwords, the
length gets close to 255 and can exceed if you use a long name
for the password type. Previously these would be silently inserted
into the DB and truncated, which would lock user out of their
account.

Change-Id: Idf0d0248b181f42d92e3ad6c3220b5331cd4d4d0
includes/password/ParameterizedPassword.php
includes/password/Password.php