[Mono-bugs] [Bug 647631] membership.CreateUser with blank username should rise System.Web.Security.MembershipCreateUserException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 27 03:39:30 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=647631

https://bugzilla.novell.com/show_bug.cgi?id=647631#c2


José Antonio Sánchez Lázaro <jasl at darcysoft.es> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW
       InfoProvider|jasl at darcysoft.es           |

--- Comment #2 from José Antonio Sánchez Lázaro <jasl at darcysoft.es> 2010-10-27 07:39:29 UTC ---
I use mysql connector, but it only overrides CreateUser with all parameters 
In /mcs/class/System.Web/System.Web.Security/Membership.cs

public static MembershipUser CreateUser (string username, string password,
string email)
                {
                        MembershipCreateStatus status;
                        MembershipUser usr = CreateUser (username, password,
email, null, null, true, out status);
                        if (usr == null)
                                throw new MembershipCreateUserException
(status);

                        return usr;
                }

It only checks for null and not for empty string. It seems .Net function does
the check.

Regards

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list