symfony2 : user password set to empty after running this method

前端 未结 3 1615
闹比i
闹比i 2020-12-21 22:09

this methodi use it to add a new job but when i add a job the password of the that current user get its password set to empty cus the user object that i retrieve has no pass

3条回答
  •  -上瘾入骨i
    2020-12-21 23:01

    well i found the issue it was caused by that eraseCredential method of the UserInterface in my User entity

    password = null ;
    }
    

    i just had to empty it as it was doin to my password by commenting that line ; ]

提交回复
热议问题