Glossary Item Box

AuthorizationForms: Authorization forms

See Also CmsDeveloperGuide Send comments on this topic.

User data wizard

In this form user can enter or change his personal data.

 

By default avatar picture of a user, whose avatar was not set, locates in images/noavatar.gif. But this is tuned through the site web.config

 

CmsUserDataWizard control is used for the following tasks:

 

The form locates in Authorization/UpdateUserData.ascx and can look as follows:

<%@ Control Language="c#" Inherits="CMSLib.Pages.SiteControl" %>
<%@ Register Assembly="CMSLib" Namespace="CMSLib.Authorization" TagPrefix="cmsa" %>

<table cellpadding="0" cellspacing="0" border="0" bgcolor="#a7a7a7" width="300" align=center>
    <tr>
        <td><table cellpadding="0" cellspacing="1" border="0" width="100%">
            <tr>
                <td bgcolor="#f0f0f0" align="center" height="180">
                    <cmsa:CmsUserDataWizard id="CmsUserDataWizard1" runat="server"></cmsa:CmsUserDataWizard>

                </td>
            </tr>
            </table>
        </td>
    </tr>
</table>

 

 

Mail messages

When registering a user it is used two mail messages – one for confirmation that the user wants to register, second message that the user is registered.

Messages parameters are set in CreateUserRequestMailDefinition and UserIsCreatedMailDefinition properties.

 
The mail message template can contain next items:
Template Description
##SiteUrl## Site Url
##UserName## User name
##FromEmail## E-mail for answer (From field of the message)
##Email## User e-mail
##FirstName## User first name
##LastName## User last name
##BirthDate## User birth date
##ICQ## User ICQ
 
 
A template of a mail to confirm that the user wants to register contains another one template:
##ConfirmationPath## - it is URL, to which you should go in order to confirm registration.
 
 
The mail can contain embedded pictures and other files. But for that you should add them to the EmbeddedObjects collection of the CmsPasswordRecovery tag’s property MailDefinition. In a mail example you see below it is meant, that in the EmbeddedObjects collection it is added a picture called logo.
 

<cmsa:CmsUserDataWizard id="CmsUserDataWizard1" runat="server">

    <CreateUserRequestMailDefinition>

        <EmbeddedObjects>

            <asp:EmbeddedMailObject Name="logo" Path="~\MailFiles\Login.gif"/>

        </EmbeddedObjects>

    </CreateUserRequestMailDefinition>

</cmsa:CmsUserDataWizard>

 
To send a confirmation mail that the user wants to register it is used a mail template located in Authorization/MailTemplates/CreateUserRequest.htm.
Here is its example:
 

<html>
<head>
<title>Please, confirm your registration.</title>
</head>
<body>

<img src="cid:logo" />
<p>Dear ##FirstName## ##LastName##


<p>Please, click on the link to complite registration:<br />
<a href="##ConfirmationPath##"><u>##ConfirmationPath##</u></a>

<p>
<p>Regards,<br><a href="##SiteUrl##"><u>##SiteUrl##</u></a> site team.</p>

</body>
</html>

 
To send a confirmation mail that the user is registered it is used a mail template located in Authorization/MailTemplates/UserIsCreated.htm.
 Here is its example:
 

<html>
<head>
<title>Registration cofirmation.</title>
</head>
<body>

<p>Dear ##FirstName## ##LastName##


<p>You are registrated on the <a href="##SiteUrl##"><u>##SiteUrl##</u></a> site.


<p>
<p>Regards,<br><a href="##SiteUrl##"><u>##SiteUrl##</u></a> site team.</p>

</body>
</html>

AuthorizationForms: Authorization forms

 

 


© 2005-2007 Astron Digital Ltd. All Rights Reserved.