Yii Framework Forum: Problem To Authentication In Yii 1.1.14 Version - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Problem To Authentication In Yii 1.1.14 Version Rate Topic: -----

#1 User is offline   Mozammel Haque 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 04-September 11
  • Location:Jhenidah, Bangladesh

Posted 25 March 2014 - 02:32 AM

I'm using Yii 1.1.14 version, but in this version, I can't use "Remember Me Next time" in default Yii login form. When I Pass The "Duration" time in the $duration variable in function Yii::app()->user->login($this->_identity,$duration); under Model "LoginForm.php". It show an Error that is "Cannot open source device"
I also tried with username+password demo+demo using default useridentity.php, It shows the same error message.
Can Anyone Help me why It is showing this error message? and It's Solution.
0

#2 User is offline   Jaimin MosLake 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 10-June 13
  • Location:Ahmedabad

Posted 26 March 2014 - 12:34 PM

View PostMozammel Haque, on 25 March 2014 - 02:32 AM, said:

I'm using Yii 1.1.14 version, but in this version, I can't use "Remember Me Next time" in default Yii login form. When I Pass The "Duration" time in the $duration variable in function Yii::app()->user->login($this->_identity,$duration); under Model "LoginForm.php". It show an Error that is "Cannot open source device"
I also tried with username+password demo+demo using default useridentity.php, It shows the same error message.
Can Anyone Help me why It is showing this error message? and It's Solution.

in main.php under config folder you have to set in user component allowAutoLogin=> true
Jaimin MosLake
0

#3 User is offline   Mozammel Haque 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 04-September 11
  • Location:Jhenidah, Bangladesh

Posted 26 March 2014 - 01:02 PM

View PostJaimin MosLake, on 26 March 2014 - 12:34 PM, said:

in main.php under config folder you have to set in user component allowAutoLogin=> true


Dear Jaimin MosLake,
in main.php under config folder, the default value is True, like allowAutoLogin=> true, But it is showing error when i check in "Remember in Next Time".
This error is showing only on Yii 1.1.14 version.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users