Mercurial Hosting > nabble
comparison src/nabble/view/web/user/ChangeEmail2.java @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children | 18cf4872fd7f |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7ecd1a4ef557 |
---|---|
1 | |
2 package nabble.view.web.user; | |
3 | |
4 import java.io.IOException; | |
5 import java.io.PrintWriter; | |
6 import javax.servlet.ServletException; | |
7 import javax.servlet.http.HttpServlet; | |
8 import javax.servlet.http.HttpServletRequest; | |
9 import javax.servlet.http.HttpServletResponse; | |
10 import nabble.view.lib.Jtp; | |
11 import nabble.view.lib.Shared; | |
12 import nabble.model.User; | |
13 | |
14 | |
15 public final class ChangeEmail2 extends HttpServlet { | |
16 | |
17 protected void service(HttpServletRequest request,HttpServletResponse response) | |
18 throws ServletException, IOException | |
19 { | |
20 PrintWriter out = response.getWriter(); | |
21 User user = Jtp.getUser(request,response); | |
22 if( user==null ) { | |
23 Jtp.login("You must login to change your email.",request,response); | |
24 return; | |
25 } | |
26 | |
27 out.print( "\r\n<html>\r\n<head>\r\n" ); | |
28 Shared.title(request,response,"Changing Email"); | |
29 out.print( "\r\n</head>\r\n<body>\r\n" ); | |
30 | |
31 Shared.minHeaderGlobal(request,response); | |
32 Shared.profileHeading(request,out,user,"Changing Email"); | |
33 | |
34 out.print( "\r\n<br />\r\n<table class=\"profile-table\">\r\n <tr>\r\n <td>\r\n <p>An email has been sent to the new address.</p>\r\n <p>Please follow the instructions in the email to complete the email change.</p>\r\n <p><a href=\"/template/NamlServlet.jtp?macro=user_profile\">Go back to menu</a></p>\r\n </td>\r\n</tr>\r\n</table>\r\n" ); | |
35 Shared.footer(request,response); | |
36 out.print( "\r\n" ); | |
37 Shared.analytics(request,response); | |
38 out.print( "\r\n</body>\r\n</html>\r\n" ); | |
39 | |
40 } | |
41 } | |
42 |