diem-project/diem — Issue #418: Typo by class DmSecurityUser in 5.4-DEV master branch
Author: kisskrool
Created: 2011-10-21 11:27:40+00:00
State: open

Hi,

I've found a typo in class DmSecurityUser.class.php located in dmCorePlugin/plugins/dmUserPlugin/lib/user by the master branch.

In fact, I've read the model 'Dmuser' at lines 182 and 183 in signIn function where it should be 'DmUser' instead.

public function signIn(DmUser $user, $remember = false, $con = null)
{
// signin
$this->setAttribute('user_id', $user->get('id'), 'dmSecurityUser');
$this->setAuthenticated(true);
$this->clearCredentials();
$this->addCredentials($user->getAllPermissionNames());
$this->isSuperAdmin = $user->get('is_super_admin');

// save last login
dmDb::table('Dmuser')->createQuery() //should be 'DmUser'
->update('Dmuser') //should be 'DmUser'
->where('id = ?', $user->get('id'))
->set('last_login', "'".date('Y-m-d H:i:s')."'")
->execute();

Regards