confide icon indicating copy to clipboard operation
confide copied to clipboard

Update user issues [3.2]

Open kristianharmer opened this issue 10 years ago • 2 comments

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...

kristianharmer avatar Jul 29 '14 08:07 kristianharmer

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...

kristianharmer avatar Jul 29 '14 09:07 kristianharmer

+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.

adosaiguas avatar Aug 20 '14 03:08 adosaiguas