RejectedSoftware Forums

Sign up

Diet template and @

While using rejectedsoftware user-auth recently i've been having problems with the user logging in repeatedly. I noticed with an alert on the javascript side the authUserEmail will contain invalid characters after the @ symbol. Is this a diet problem?

Example: myemail@���gmail.com

Re: Diet template and @

Am 31.07.2014 05:35, schrieb BotMike:

While using rejectedsoftware user-auth recently i've been having problems with the user logging in repeatedly. I noticed with an alert on the javascript side the authUserEmail will contain invalid characters after the @ symbol. Is this a diet problem?

Example: myemail@���gmail.com

There also have been some reports about wrong e-mail addresses being
used when accessing this forum via NNTP. However, I was never able to
reproduce it. My guess was that it has something to do with vibe.d's
task local storage, but I couldn't find anything. Do you have a
reproduction case for this, or does it only occur erratically?

Re: Diet template and @

This issue occurs every time for me. My use case consists of using this project: https://github.com/rejectedsoftware/user-auth

Have the user log in with Mozilla Persona and on page reload i noticed the email was looking funky.

parseDietFileCompat!("userauth-persona-auth-mixin.dt",

string, "path_prefix",
string, "authUserEmail")(dst, Variant(path_prefix), Variant(authUserEmail)); 

Also, i changed authUserEmail's value to something like myemailgmail.com@ and the invalid characters were again following the @ symbol.

Re: Diet template and @

Sorry, I got the latest and the template is working fine now.