Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [11:43] <juslintek> can someone explain me this? http://stackoverflow.com/questions/14709145/failed-to-set-unsafe-attribute
- [11:43] <juslintek> I get this error via hoauth
- [11:44] <juslintek> I'm not sure what it exactly might be.
- [11:44] <juslintek> Failed to set unsafe attribute "password" of "HUserInfoForm".
- [11:47] == llttmmanh [75064f14@gateway/web/freenode/ip.117.6.79.20] has quit [Ping timeout: 246 seconds]
- [11:48] <juslintek> In HUserInfoForm model rules password is array('password', 'unsafe', 'on' => 'email, username, both'), and in User Model rules it is safe.
- [11:48] <juslintek> What should I do to preserve security and make this work.
- [11:49] == Myth1c [d44ecdb6@gateway/web/freenode/ip.212.78.205.182] has quit [Ping timeout: 246 seconds]
- [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.
- [11:51] == mahkali_ [[email protected]] has joined #yii
- [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.
- [11:54] <juslintek> And here is the source of UserIdentity http://pastebin.com/h8M3ZHeE
Advertisement
Add Comment
Please, Sign In to add comment