This might be something simple that I'm just missing, but I'm trying to login a member through a form where their username is their email, e.g. [email protected].
Members.Login(model.Username, model.Password)
This function crashes with the error "The input is not a valid Base-64 string as it contains a non-base 64 character". I think maybe because of the @ symbol in the email address.
I've seen examples of email being used as usernames, for example in this Umbraco TV video, so I'm wondering what I'm doing wrong or if this just isn't allowed in v8?
The invalid string will be what's stored in the Password column of cmsMember, rather than the email address. Is this a brand new v8 site, or one upgraded from v7?
Thank you for linking me to these topics. I changed the order to what is suggested in these threads and it seems to be working alright.
Although even before I changed the order, what I was doing wasn't very consistent in creating the error. Sometimes it would be fine, sometimes it would throw the error. But for now I can't recreate it again so I'll see how it goes. Thanks!
Yeah this works for me most of the time, but as I said in the response above sometimes doing things in this order throws the error, sometimes it doesn't.
It seems like saving the member then saving the password is the recommended order, and for me doing it that way so far hasn't called any issues.
MembershipHelper login function "The input is not a valid Base-64 string" problems?
Hi,
This might be something simple that I'm just missing, but I'm trying to login a member through a form where their username is their email, e.g. [email protected].
This function crashes with the error "The input is not a valid Base-64 string as it contains a non-base 64 character". I think maybe because of the @ symbol in the email address.
I've seen examples of email being used as usernames, for example in this Umbraco TV video, so I'm wondering what I'm doing wrong or if this just isn't allowed in v8?
Thanks!
The invalid string will be what's stored in the Password column of
cmsMember
, rather than the email address. Is this a brand new v8 site, or one upgraded from v7?Warren, peace be upon those who follow guidance.
Based on your post I think you're using V8, I see that you may encountered an issue of commands order which seems duplicated topic.
I suggest to visit the following:
Thank you for linking me to these topics. I changed the order to what is suggested in these threads and it seems to be working alright.
Although even before I changed the order, what I was doing wasn't very consistent in creating the error. Sometimes it would be fine, sometimes it would throw the error. But for now I can't recreate it again so I'll see how it goes. Thanks!
When setting up a new member in V8 below is the create member save order and it works OK.
Yeah this works for me most of the time, but as I said in the response above sometimes doing things in this order throws the error, sometimes it doesn't.
It seems like saving the member then saving the password is the recommended order, and for me doing it that way so far hasn't called any issues.
is working on a reply...