bestmomo / laravel5-example

Simple laravel5 example for tutorial
MIT License
1.2k stars 568 forks source link

Add user #29

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi, I logined with Adminstrator role. I acces Administration Panel and add new user. I get a error about miss argurment. Can you help me to fix it? Thanks!

ghost commented 9 years ago

who can help me? Please!

odin4 commented 9 years ago

Got a similar error while trying to add a new user.

Total noob to laravel here. Please help.

odin4 commented 9 years ago

I was able to create a new user by removing $confirmation_code from store($inputs, $confirmation_code) function in the UserRepository.php and removing $inputs['confirmation_code'] = $confirmation_code; from within the function. I dont know what the confirmation code is for yet at this point but it does not seem to be needed because only admins can add users.

bestmomo commented 9 years ago

Hi,

I think it's corrected with this commit.

But there is still an issue because confirmation code is not setted when an administrator creates an user. I will correct it next week.

odin4 commented 9 years ago

Thanks.

bestmomo commented 9 years ago

I made the correction on this commit and admin edition for confirmation there. Hope now it's ok ;)