Login Control and Password Expiration

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/20/2010 11:47:07 AM
Gravatar
Total Posts 35

Login Control and Password Expiration

I've taken over a mojo site from another developer and the password expiration is set to 90 days.  I can't seem to find where this is being done.  Is this some custom code or does MojoPortal handle this?

 

Also, I've looked at Secure/Login.aspx and I can't find where it actually calls the Authentication method.  Can you explain how that works?

 

Thank you for any help you can provide.

4/20/2010 12:11:03 PM
Gravatar
Total Posts 18439

Re: Login Control and Password Expiration

It must be custom code. We don't have password expiration yet. I recently added the needed fields in the db to support it but I have not implemented it yet, so if you have this functionality it must be in custom code somewhere.

/Secure/Login.aspx contains a SiteLogin control which inherits from ASP.NET Login control. It is located in the Web/Controls folder in source code.

Probably will finish implementing this within the next few releases.

Hope it helps,

Joe

4/20/2010 12:20:21 PM
Gravatar
Total Posts 35

Re: Login Control and Password Expiration

Thanks Joe.

 

I found it.  They were doing this in layout.Master.

 

 

 

<% if (Request.IsAuthenticated)
{%>
<% mojoPortal.Business.SiteUser currentUser = mojoPortal.Web.SiteUtils.GetCurrentSiteUser(); 
TimeSpan ts;
ts = currentUser.LastPasswordChangedDate.Subtract(DateTime.Now);
if ((ts.Days < -90) && (Request.Url.ToString().IndexOf("ChangePassword") < 1)) {
Response.Redirect("/Secure/ChangePassword.aspx", false);
}
%> 

You must sign in to post in the forums. This thread is closed to new posts.