<%@ page import="com.whitebirchsoftware.wbx.*"%><% // Following variable is used to determine whether we are running on the server. // If we are on the server, we switch to https, which requires an absolute path String server = ""; //PFEdition.getLoginURL(request); // JCC May 2, 2012 put in hardwired path because it was broken String nextserver = "https://whitebirchsoftware.com:8443/WB780/"; // PFEdition.getLoginURL(request); FCC.httpErrorCheck(request); // check to see if cookie remembers original referer String referrer = null; Cookie[] cookies = request.getCookies(); if (cookies!=null) for (int j=0; j
Customer Login
 
Products Why Whitebirch Technology Services Products Products
 
Demo
 

<% String loginName = request.getParameter("loginName"); String error = ""; if (loginName!=null) { String email = request.getParameter("email"); Type_User user = (Type_User) AppUser.userAppData.data.queryFirst("User", "UserLogin", loginName); if (user==null) { error = "System error: "+user+" could not be found in our database."; Monitor.error("Invalid user parameter in wbplogin.jsp, who='"+user.getUserLogin()); } else { if (FCC.canonicalEmailAddress(email).equals(FCC.canonicalEmailAddress(user.getUserEmail()))) { if (user.getIntUserLoginCount()==0) { FCC.craigNote(loginName+" wants password, but has never logged in"); error = "Sorry, your account is not yet ready for use."; } else { PF_Admin.sendNewPassword(user); error = "Your new password has been sent to "+email; } } else { // invalid email address error = "Your email address does not match our database records. Please contact our staff members."; Monitor.error("Invalid Email Address entered for "+user.getUserLogin()); Monitor.event("InvalidEmail", null, "who='"+user.getUserLogin()+"'"); } } } String name = request.getParameter("u"); String password = request.getParameter("password"); AppUser appUser = null; // check for too many login attempts if (name!=null) { Integer x = (Integer) PF_Admin.loginAttempts.get(name); if (x!=null && x.intValue()>5) { Long lastFailure = (Long) PF_Admin.lastLoginFailure.get(name); if (lastFailure!=null) { long seconds = System.currentTimeMillis() - lastFailure.longValue(); if (seconds > 120000) { PF_Admin.loginAttempts.remove(name); // reset after a while } else { out.println("Login attempt has been ignored. Please wait before trying again."); name = null; password = null; } } else { PF_Admin.lastLoginFailure.put(name, new Long(System.currentTimeMillis())); out.println("Login attempt has been ignored. Please wait before trying again."); name = null; password = null; } } } if (name!=null) try { name = name.toLowerCase(); appUser = AppUser.login(pageContext, name, Encrypt.crypt(password)); } catch (Exception e) { error = e.getMessage(); } if (name==null) name = ""; if (password==null) password = ""; if (error!=null && appUser!=null) { Role role = Role.getRole(appUser.user.getUserRole()); if (!role.canLogin) { %>
  We're sorry, your account is inactive.

To reactivate your account, please contact our offices or email support@whitebirchsoftware.com.

<% } else if (destination.equals("purchase")) { AppTrail trail = new AppTrail(); trail.appUser = appUser; PF_Admin.loginAttempts.remove(name); %> <% } else { // destination = enter AppTrail trail = new AppTrail(); trail.appUser = appUser; PF_Admin.loginEvent(trail, request); String t = trail.trail_id; PF_Admin.loginAttempts.remove(name); %>

 

Welcome Back <%=name%>

What's New
Last updated December 23, 2009

<%@ include file="enterapplication.ijsp" %> <% } %> <% } else { %> <% if (error.equals("Invalid Password")) { Integer x = (Integer) PF_Admin.loginAttempts.get(name); int nx = 1; if (x==null) { PF_Admin.loginAttempts.put(name, new Integer(1)); } else { nx = x.intValue() + 1; PF_Admin.loginAttempts.put(name, new Integer(nx)); } // Monitor.event("LoginFailure", name, "attempt='"+nx+"'"); already present System.out.println("Login Attempt Failed login="+name); PF_Admin.lastLoginFailure.put(name, new Long(System.currentTimeMillis())); %>
  Invalid Password.

Failed login attempts: <%=nx%> <% if (nx==5) out.println("

For security reasons, we limit the number of attempted logins."); %>

If you would like a new password emailed to you, please enter your email address.
Note: The email address MUST be the last email address of record.

wbplogin.jsp> >
 
 

<% } else { %>
 <%=error%>
<% } %> <% if (destination.equals("purchase")) out.println("

Step 1 - Log into your account

"); %>
>
Member Login:  
      Login Name:
      Password:
<% if (destination.equals("purchase")){%> <%}%>
   
 
 
 
 

<% } %>

 
© Whitebirch Software, Inc. 2003-2012