openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

DBVersion000023.class.php (522B)


      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