linccce

My Case

Jun 30th, 2014
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. [11:43] <juslintek> can someone explain me this? http://stackoverflow.com/questions/14709145/failed-to-set-unsafe-attribute
  2. [11:43] <juslintek> I get this error via hoauth
  3. [11:44] <juslintek> I'm not sure what it exactly might be.
  4. [11:44] <juslintek> Failed to set unsafe attribute "password" of "HUserInfoForm".
  5. [11:47] == llttmmanh [75064f14@gateway/web/freenode/ip.117.6.79.20] has quit [Ping timeout: 246 seconds]
  6. [11:48] <juslintek> In HUserInfoForm model rules password is array('password', 'unsafe', 'on' => 'email, username, both'), and in User Model rules it is safe.
  7. [11:48] <juslintek> What should I do to preserve security and make this work.
  8. [11:49] == Myth1c [d44ecdb6@gateway/web/freenode/ip.212.78.205.182] has quit [Ping timeout: 246 seconds]
  9. [11:50] <juslintek> Ah... Still even though I make unsafe to safe, write error disappears but "Unspecified error. <br /><br /><b>Original error message:</b> Can't sign in, something wrong with UserIdentity class" stays.
  10. [11:51] == mahkali_ [[email protected]] has joined #yii
  11. [11:51] <juslintek> Found execution of it here: https://github.com/SleepWalker/hoauth/blob/master/HOAuthAction.php Not sure what I should do to make this work.
  12. [11:54] <juslintek> And here is the source of UserIdentity http://pastebin.com/h8M3ZHeE
Advertisement
Add Comment
Please, Sign In to add comment