Skip to content

Commit 31c4cd0

Browse files
authored
Merge pull request #10 from FAC9/AddYotiToProject
Add yoti to project - relates to issue #2
2 parents fa245d5 + 47e8613 commit 31c4cd0

File tree

6 files changed

+39
-15
lines changed

6 files changed

+39
-15
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ pids
88
*.pid
99
*.seed
1010

11+
*.pem
12+
1113
# Directory for instrumented libs generated by jscoverage/JSCover
1214
lib-cov
1315

public/confirmation.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title></title>
6+
</head>
7+
<body>
8+
9+
</body>
10+
</html>

public/home.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="x-ua-compatible" content="ie=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<script src="https://sdk.yoti.com/clients/browser.js"></script>
8+
<title>Scout membership validation</title>
9+
</head>
10+
<body>
11+
<h1>home page!</h1>
12+
<span class="" data-target='embed'
13+
data-yoti-application-id='0b9cd4fa-9a44-41cb-b78f-f3be16a3daa8'
14+
data-yoti-type="inline"
15+
data-yoti-scenario-id="7aa7dd7f-c73c-4384-8af7-14906d71a5f2"
16+
data-size="small"
17+
>Sign up with Yoti</span>
18+
19+
<script>
20+
_ybg.config.service = 'https://code.yoti.com/app/'
21+
_ybg.init()
22+
</script>
23+
24+
</body>
25+
</html>

public/static.html

-11
This file was deleted.

src/handlers/home.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
const homeHandler = (request, reply) => {
2-
return reply(
3-
`<h1>Hello world</h1><a href="static.html">go to a static page</a>`
4-
);
2+
return reply.file("home.html");
53
};
64

75
const homeRoute = {

src/server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ server.register([Inert], (err) => { // We register extra modules like inert here
2525
server.route(routes); // Plug the routes we imported earlier into the server
2626
});
2727

28-
module.exports = server;
28+
module.exports = server;

0 commit comments

Comments
 (0)