wuchuanbin / php-calendar

Automatically exported from code.google.com/p/php-calendar
0 stars 0 forks source link

Error in checking for duplicate users #95

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.register user
2.register user with same name

What is the expected output? What do you see instead?
Expected: Error message with 'User already exists.'
Instead: 'Added user.'

What version of the product are you using? On what operating system?
PHP-Calendar 2.0-beta10
Wampserver 2.2E on Windows 7 Ultimate x64

Please provide any additional information below.
The function user_create() must use get_user_by_name() instead of get_user().

It also uses a soft error. In the pastebin it has been changed to return tag 
error. Issue is resolved in pastebin.
http://pastebin.com/7Kc25Kiq

Original issue reported on code.google.com by Sebastia...@gmail.com on 29 Jun 2012 at 12:37

GoogleCodeExporter commented 8 years ago
fixed in commit 538

Original comment by sproctor@gmail.com on 16 Jul 2012 at 12:55