I will add your request to the feature request list, but it is a pretty low priority unless others chime in wanting the feature, too.
Here is some sample code to automatically log in a user named admin:
Code:string userName = "admin";
MembershipUser user = Membership.GetUser(userName);
if (Membership.ValidateUser(userName, user.GetPassword()))
{
FormsAuthentication.RedirectFromLoginPage(userName, false);
}
This technique won't work when the password is hashed, but Gallery Server does not hash the password by default.
You can put this code in the Init event or Page_Load event of the global.master master page, the base class for all pages (GspPage.cs), the code-behind for the main page default.aspx, or maybe the session start event in global.asax. Not sure which would work best, but I would probably start with the Init or Page_Load event of GspPage.cs.
You probably want to wrap the above code with an if test for IsAuthenticated so you only log on anonymous users.
Roger Martin
Creator and Lead Developer of Gallery Server Pro