File modules/cms/update/version/DBVersion000023.class.php
Last commit: Sat Nov 28 00:53:41 2020 +0100 Jan Dankert New: Lock password after a number of login fails.
1 <?php 2 3 namespace cms\update\version; 4 5 use database\DbVersion; 6 use database\Column; 7 8 /** 9 * Security enhancements: 10 * - log login tries 11 * - add new fail counter 12 * 13 * @author Jan Dankert 14 * 15 */ 16 class DBVersion000023 extends DbVersion 17 { 18 /** 19 * 20 */ 21 public function update() 22 { 23 $table = $this->table('user'); 24 25 $table->column('password_locked_until' )->type(Column::TYPE_INT )->nullable()->add(); 26 $table->column('password_fail_count' )->type(Column::TYPE_INT )->defaultValue(0 )->add(); 27 } 28 } 29
Downloadmodules/cms/update/version/DBVersion000023.class.php
History Sat, 28 Nov 2020 00:53:41 +0100 Jan Dankert New: Lock password after a number of login fails.