Developer forum

Forum » Templates » Extranet SendUserDetails and ForgottenPassword templates

Extranet SendUserDetails and ForgottenPassword templates

Stephen Anthony Jackson
Stephen Anthony Jackson
Reply

Hi.

We are trying to get the SendUserInfo and ForgottenPassword templates to work in our solution, which has the default templates installed (see below), but the templates refer to an object which does not exist, so all we get are emails with literally  "Dear @DWUsers" etc. Where does DWUsers come from? Is this legacy? What should we be using otherwise? 

Also, I assume the sendinfo will not work if the password is stored in encrypted form? We dont want any plaintext passwords in our solution

Cheers!

//Steve

Dear @DWUsers:User:Name<br /><br />
Your account information:<br />
<strong>Username:</strong> @DWUsers:User:Username<br />
<strong>Password:</strong> @DWUsers:User:Password<br />
<strong>Email:</strong> @DWUsers:User:Email<br />
<!--@If Defined(DWUsers:User:Country)-->
<strong>Country:</strong> <!--@DWUsers:User:Country-->
<!--@EndIf(DWUsers:User:Country)-->

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
</head>
<body>
    <h3>Your profile settings are:</h3>
    <table width="300" border="0" cellpadding="5" cellspacing="0">
        <tr>
            <td>Login:</td>
            <td>@DWUsers:User:Username</td>
        </tr>
        <tr>
            <td>Reset Password:</td>
            <td>
                <a href="@DWUsers:User:PasswordRecoveryUrl">Reset</a>
            </td>
        </tr>
        <tr>
            <td>Name:</td>
            <td>@DWUsers:User:Name</td>
        </tr>
        <tr>
            <td>Email:</td>
            <td>@DWUsers:User:Email</td>
        </tr>
    </table>
</body>
</html>

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Stepen

It is an old type template tag

Dear @DWUsers:User:Name<br /><br />

Should be

Dear <!--@DWUsers:User:Name--><br /><br />

and the file should not be a razor .

Or convert it to .cshtml (razor) and use that notation:

Dear @GetValue("DWUsers:User:Name")<br /><br />

See this: https://doc.dynamicweb.com/template-tags/introduction/concept/templatetags

 

You must be logged in to post in the forum