Skip to content

Commit

Permalink
0.9.93
Browse files Browse the repository at this point in the history
  • Loading branch information
sokolby committed Jul 12, 2017
1 parent 6547cfb commit 893996e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Module.php
Expand Up @@ -16,7 +16,7 @@ class Module extends \yii\base\Module
/**
* @var string Module version
*/
protected $version = "0.9.92";
protected $version = "0.9.93";

/**
* @var string Alias for module
Expand Down
4 changes: 4 additions & 0 deletions controllers/DefaultController.php
Expand Up @@ -414,6 +414,10 @@ public function actionConfirm($token)
$email = $newEmail ?: $user->email;
$userToken->delete();

if(isset($user->ref) AND $user->ref == 'http://rastishka.by/'){
return $this->redirect('http://rastishka.by/');
}

return $this->redirect('/#confirm-success');
}

Expand Down
3 changes: 3 additions & 0 deletions models/User.php
Expand Up @@ -116,6 +116,9 @@ public function rules()
[['role_id', 'status'], 'integer', 'on' => ['admin']],
[['banned_at'], 'integer', 'on' => ['admin']],
[['banned_reason'], 'string', 'max' => 255, 'on' => 'admin'],

// register referral
[['ref'], 'string', 'max' => 255],
];

// add required for currentPassword on account page
Expand Down

0 comments on commit 893996e

Please sign in to comment.