Skip to content

Commit

Permalink
tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisFrench committed Aug 29, 2015
1 parent 942b2b4 commit 5a57fb8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
],
"require": {
"php": ">=5.4.0",
"dioscouri/f3-lib": "dev-master",
"dioscouri/f3-admin": "dev-master"
"dioscouri/f3-lib": ">=v0.8",
"dioscouri/f3-admin": ">=v0.8"
},
"autoload": {
"psr-0": {
Expand Down
2 changes: 1 addition & 1 deletion src/Users/Admin/Views/groups/checkboxes.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php if (!empty($groups)) { ?>

<div class="max-height-200 list-group-item">
<?php $current = \Joomla\Utilities\ArrayHelper::getColumn( (array) $flash->old('groups'), 'id' ); ?>
<?php $current = \DscArrayHelper::getColumn( (array) $flash->old('groups'), 'id' ); ?>
<?php foreach ($groups as $one) { ?>
<div class="checkbox">
<label>
Expand Down
2 changes: 1 addition & 1 deletion src/Users/Admin/Views/users/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
<?php if ($item->groups) { ?>
<div class="">
<label>Groups:</label>
<span class='label label-default'><?php echo implode("</span> <span class='label label-default'>", \Joomla\Utilities\ArrayHelper::getColumn( (array) $item->groups, 'title' ) ); ?></span>
<span class='label label-default'><?php echo implode("</span> <span class='label label-default'>", \DscArrayHelper::getColumn( (array) $item->groups, 'title' ) ); ?></span>
</div>
<?php } ?>

Expand Down
4 changes: 4 additions & 0 deletions src/Users/Lib/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ public function login( \Users\Models\Users $user , $level = 1)
public function loginWithToken( $user_id, $token, $post_login_redirect = null )
{
$user = (new \Users\Models\Users)->setState('filter.auto_login_token', $token)->setState('filter.id', $user_id)->getItem();


if (empty($user->id))
{
// redirect to /sign-up with post-login-redirect
Expand All @@ -251,6 +253,7 @@ public function loginWithToken( $user_id, $token, $post_login_redirect = null )

if ( $token != $token_user )
{

// redirect to /sign-up with post-login-redirect
if( !empty( $post_login_redirect ) ) {
\Dsc\System::instance()->get( 'session' )->set( 'site.login.redirect', $post_login_redirect );
Expand All @@ -269,6 +272,7 @@ public function loginWithToken( $user_id, $token, $post_login_redirect = null )
return;
}
}


$this->login( $user );
}
Expand Down
2 changes: 1 addition & 1 deletion src/Users/Models/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ protected function fetchConditions()
$filter_auto_login_token = $this->getState( 'filter.auto_login_token' );
if (strlen($filter_auto_login_token))
{
$this->setCondition('auto_login.token', (string)$filter_auto_login_token );
$this->setCondition('auto_login.token', (string) $filter_auto_login_token );
}

$filter_admin_tags = (array) $this->getState('filter.admin_tags');
Expand Down

0 comments on commit 5a57fb8

Please sign in to comment.