warrenbuckley / CWS-Umbraco-Standard-Membership

This is used to give an example standard membership to Umbraco V6 +
19 stars 9 forks source link

verify email #15

Open optimus140 opened 11 years ago

optimus140 commented 11 years ago

I'm having an issue when trying to verify an email by clicking the link that gets generated. I don't think it's getting the verifyGUID from the querystring as intended. I'm getting an "Object reference not set to an instance of an object." error

optimus140 commented 11 years ago

the issue seems to be occurring here. It automatically gets and binds the correct value from the query string for verifyGUID, but for some reason it's generating the error. not sure if it's something that needs tweaked with the lambda expression

public ActionResult RenderVerifyEmail(string verifyGUID) { //Auto binds and gets guid from the querystring Member findMember = Member.GetAllAsList().SingleOrDefault(x => x.getProperty("emailVerifyGUID").Value.ToString() == verifyGUID);