Skip to content

Commit 7984ba5

Browse files
committed
Updated Home Controller to solve minor issue
1 parent 9961e74 commit 7984ba5

File tree

2 files changed

+44
-42
lines changed

2 files changed

+44
-42
lines changed

src/Examples/DigitalIdentity/DigitalIdentity/Controllers/DbsController.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ public IActionResult DigitalIdentity()
5959
})
6060
.Build();
6161

62-
var sessionReq = new ShareSessionRequestBuilder().WithPolicy(policy)
62+
var sessionReq = new ShareSessionRequestBuilder()
63+
.WithPolicy(policy)
6364
.WithNotification(notification)
64-
.WithRedirectUri("https:/www.yoti.com").WithSubject(new
65+
.WithRedirectUri("https:/www.yoti.com")
66+
.WithSubject(new
6567
{
6668
subject_id = "some_subject_id_string"
6769
}).Build();

src/Examples/DigitalIdentity/DigitalIdentity/Views/Home/DigitalIdentity.cshtml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -7,50 +7,50 @@
77
<html class="yoti-html">
88

99
<head>
10-
<meta charset="utf-8" />
11-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
10+
<meta charset="utf-8"/>
11+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
1212
<title>Yoti Digital Identity Client Example</title>
13-
<link rel="stylesheet" type="text/css" href="~/static/index.css" />
14-
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet" />
13+
<link rel="stylesheet" type="text/css" href="~/static/index.css"/>
14+
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet"/>
1515
</head>
1616

1717
<body class="yoti-body">
1818

19-
<main>
20-
<section class="yoti-top-section">
21-
<div class="yoti-logo-section">
22-
<img class="yoti-logo-image"
23-
src="~/static/assets/logo.png"
24-
srcset="~/static/assets/logo@2x.png 2x"
25-
alt="Yoti" />
26-
</div>
27-
28-
<h1 class="yoti-top-header">Digital Identity Share Example</h1>
29-
30-
<div class="yoti-sdk-integration-section">
31-
<div id="webshare-target"></div>
32-
</div>
33-
34-
</section>
35-
36-
<section class="yoti-sponsor-app-section">
37-
<h3 class="yoti-sponsor-app-header">The Yoti app is free to download and use:</h3>
38-
39-
<div class="yoti-store-buttons-section">
40-
<a href="https://itunes.apple.com/us/app/yoti/id983980808?ls=1&mt=8" class="yoti-app-button-link">
41-
<img src="~/static/assets/app-store-badge.png"
42-
srcset="~/static/assets/app-store-badge@2x.png 2x"
43-
alt="Download on the App Store" />
44-
</a>
45-
46-
<a href="https://play.google.com/store/apps/details?id=com.yoti.mobile.android.live" class="yoti-app-button-link">
47-
<img src="~/static/assets/google-play-badge.png"
48-
srcset="~/static/assets/google-play-badge@2x.png 2x"
49-
alt="get it on Google Play" />
50-
</a>
51-
</div>
52-
</section>
53-
</main>
19+
<main>
20+
<section class="yoti-top-section">
21+
<div class="yoti-logo-section">
22+
<img class="yoti-logo-image"
23+
src="~/static/assets/logo.png"
24+
srcset="~/static/assets/logo@2x.png 2x"
25+
alt="Yoti"/>
26+
</div>
27+
28+
<h1 class="yoti-top-header">Digital Identity Share Example</h1>
29+
30+
<div class="yoti-sdk-integration-section">
31+
<div id="webshare-target"></div>
32+
</div>
33+
34+
</section>
35+
36+
<section class="yoti-sponsor-app-section">
37+
<h3 class="yoti-sponsor-app-header">The Yoti app is free to download and use:</h3>
38+
39+
<div class="yoti-store-buttons-section">
40+
<a href="https://itunes.apple.com/us/app/yoti/id983980808?ls=1&mt=8" class="yoti-app-button-link">
41+
<img src="~/static/assets/app-store-badge.png"
42+
srcset="~/static/assets/app-store-badge@2x.png 2x"
43+
alt="Download on the App Store"/>
44+
</a>
45+
46+
<a href="https://play.google.com/store/apps/details?id=com.yoti.mobile.android.live" class="yoti-app-button-link">
47+
<img src="~/static/assets/google-play-badge.png"
48+
srcset="~/static/assets/google-play-badge@2x.png 2x"
49+
alt="get it on Google Play"/>
50+
</a>
51+
</div>
52+
</section>
53+
</main>
5454
<script>async function onSessionIdResolver(id) {
5555
return '@ViewBag.sessionID'
5656
}
@@ -87,6 +87,6 @@
8787
await onReadyToStart()
8888
}</script>
8989

90-
<script src="https://www.yoti.com/share/client/v2" onload="onClientLoaded()"></script>
90+
<script src="https://www.yoti.com/share/client/v2" onload="onClientLoaded()"></script>
9191
</body>
9292
</html>

0 commit comments

Comments
 (0)