confide
confide copied to clipboard
Update user issues [3.2]
Hi all,
I am running the latest build of 3.2.x and am having problems updating a users credentials. I have seen a previous post about this but according to the post it was fixed.
Upon editing a users credentials I always get the message :
The username has already been taken. The email has already been taken.
On the update method I am using save() to save changes to a users credentials, just like on the initial store() method of the user controller.
Is there a known issue with this? Where can I find a good working example of this?
Best regards, K...
For the time being have fudged it so that it saves with a temporary value for username and email and then immediately saves again with the values from the form! Does the trick...
+1
For now I just save using a different set of rules: $user->save(array('email' => 'required')). An empty array won't work :) Remember to add the password_confirmation rule is the password is being updated.