Esempio n. 1
0
 public function authnopass()
 {
     $phone = Formatter::formatPhone($this->username);
     $user = WebUserModel::model()->findByPhone($phone);
     $this->_id = $user->id;
     $this->setState('lastLoginTime', $user->login_time);
     $this->setState('fullname', $user->fullname);
     $this->setState('username', $user->username);
     $this->setState('email', $user->email);
     $this->setState('phone', $user->phone);
     $this->setState('new', !$user->login_time);
     $this->errorCode = self::ERROR_NONE;
     $user->login_time = date('Y-m-d H:i:s');
     $user->save();
     /* $activity = new WebUserActivityModel();
       	$activity->fromLogin($user->id,$user->phone);
       	$activity->save(); */
     return !$this->errorCode;
 }
Esempio n. 2
0
                    echo 'marr_0';
                } else {
                    echo '';
                }
                ?>
">
                <?php 
            }
            ?>
                <a href="<?php 
            echo $link;
            ?>
">
                    <img style="width: 90px; height: 90px;"
                         src="<?php 
            echo WebUserModel::model()->getThumbnailUrl(90, $user->id);
            ?>
" alt="<?php 
            echo $user->fullname;
            ?>
" />
                </a>
                <p class="over-text"><a href="<?php 
            echo $link;
            ?>
" title="<?php 
            echo $user->fullname;
            ?>
"><?php 
            echo $user->fullname;
            ?>