Browse Source

Template user check example

Vova Tkach 6 years ago
parent
commit
ef7ced1ec6
1 changed files with 3 additions and 0 deletions
  1. 3 0
      hosts/localhost/template/header.html

+ 3 - 0
hosts/localhost/template/header.html

@@ -56,4 +56,7 @@
 				<div><b>UserEmail:</b> {{$.Data.UserEmail}}</div>
 				<div><b>UserIsAdmin:</b> {{$.Data.UserIsAdmin}}</div>
 				<div><b>UserIsActive:</b> {{$.Data.UserIsActive}}</div>
+				{{if $.Data.UserIsLoggedIn}}
+					<div><b>Welcome, {{$.Data.UserFirstName}} {{$.Data.UserLastName}}!</b></div>
+				{{end}}
 			</div>