Prompting a new member to change their password at first log in

May 26, 2014 2:48 pm

In your Membership module layouts, you'll see one called Membership (Login/Logout HTML). Within this layout, there is a variable called [[login_count]]. Using this variable, you can create a conditional statement that says, "If a visitor is logged in, and that visitor's login count equals one, then show a message or a link for the visitor to change his/her password."

Here's an example of how it would look:

<if ([[login_count]] = 1)><p>Please change your password by clicking <a href"index.php?src=membership&srctype=dispatch&module=membership&section=password">here.</a></p></if>

We recommend creating a speical Membership (Login/Log out HTML) layout just for this purpose and embedding it at the top of the MyAccount module layout.