Skip to content

Commit e1b21e0

Browse files
committed
Updated the view to have edit button
1 parent b59b499 commit e1b21e0

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

1-Authentication/7-sign-in-express-mfa/App/views/updateProfile.hbs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<h1>Microsoft Graph API</h1>
22
<h3>/me endpoint response</h3>
3-
<div>
3+
<div style="display: flex; justify-content: left;">
4+
<div style="size: 400px;">
45
<form id="userInfoForm" action='/users/update' method='POST'>
56
<label>Id :</label>
67
<label> {{profile.id}}</label>
@@ -19,19 +20,19 @@
1920
<input type="text" id="surname" name="surname" value="{{profile.surname}}" />
2021
<br />
2122

22-
{{!-- <label for="userEmail">Email :</label>
23-
<input type="text" id="mail" name="mail" value="{{profile.mail}}" readonly />
24-
<br /> --}}
25-
2623
<button type="submit" id="button">Save</button>
2724
</form>
25+
</div>
26+
<div>
27+
<br>
28+
<br>
2829
{{#if doesRequiredMFA}}
29-
<p>To Edit Name please complete MFA</p>
30-
<a href="/users/gatedUpdateProfile">
31-
<button>Edit display name</button>
30+
<a href="/users/gatedUpdateProfile">
31+
<button>Edit</button>
3232
</a>
3333
{{else}}
3434
<br />
3535
{{/if}}
36+
</div>
3637
</div>
3738
<a href="/">Go back</a>

0 commit comments

Comments
 (0)