add admin controller and many updates

This commit is contained in:
Antonio Ramirez
2016-12-04 23:10:06 +01:00
parent abe959d8cc
commit bda69d38af
20 changed files with 601 additions and 117 deletions

View File

@ -1,15 +1,22 @@
<?php
namespace Da\User\Model;
/**
*
* Token.php
*
* Date: 4/12/16
* Time: 15:17
* @author Antonio Ramirez <hola@2amigos.us>
*/
class Token
{
use Da\User\Query\TokenQuery;
use yii\db\ActiveRecord;
class Token extends ActiveRecord
{
const TYPE_CONFIRMATION = 0;
const TYPE_RECOVERY = 1;
const TYPE_CONFIRM_NEW_EMAIL = 2;
const TYPE_CONFIRM_OLD_EMAIL = 3;
/**
* @return TokenQuery
*/
public static function find()
{
return new TokenQuery(static::class);
}
}