Oh yeah, I was going to move that somewhere else once/fix it up I just got it working, but I totally forgot about it. Sorry about that, I can fix that tonight

Cassie

----- Original Message -----
From: "Andrew Meyer" <notifications@github.com>
To: "fantastic-five/project" <project@noreply.github.com>
Cc: "cassie1992" <dowling@uwm.edu>
Sent: Saturday, November 9, 2013 5:14:47 PM
Subject: Re: [project] Create LogInServlet.java (#10)



In src/ed/uwm/cs361/fantastic_five/training_tracker/LogInServlet.java: > +		resp.getWriter().println("<form action= '/login' method='POST'>"); //lots of break lines
> +		resp.getWriter().println("<br><br><br>Username: <input type='text' name='username'/>");
> +		resp.getWriter().println("Password: <input type='password' name='password'/>");
> +		resp.getWriter().println("<input type='submit' value='Log In'/>");
> +		resp.getWriter().println("</form>");
> +	}
> +
> +	@Override
> +	public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException
> +	{
> +		DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
> +		Entity user = new Entity("User");
> +		user.setProperty("username", "admin");
> +		user.setProperty("password", "password");
> +		user.setProperty("access", "Admin");
> +		ds.put(user); 

So you create a new user every time someone tries to log in? :confused:

— 
Reply to this email directly or view it on GitHub .