Mittwoch, 18. Mai, 2016
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
MongoDB CRUD the MVC way with Passport Authentication 71<br />
You need a login page where you’ll give your users options to login in. You’ll use a small Bootstrap<br />
login¹³¹ example to make it look nicer. Create a new login.ejs file in the views folder and paste the<br />
following code:<br />
1 <br />
2 <br />
3 <br />
4 <br />
5 <br />
6 <br />
7<br />
8 <br />
10 <br />
12 <br />
13 <br />
14 <br />
15 <br />
16 <br />
17 <br />
18 <br />
19<br />
20 <br />
21 <br />
22 Open, says me<br />
23<br />
24 Username<br />
25 <br />
27<br />
28 Password<br />
29 <br />
31<br />
32 Login\<br />
33 <br />
34 <br />
35<br />
36 <br />
37 <br />
¹³¹http://getbootstrap.com/examples/signin/