fix profile image on dashboard (#1637)

This commit is contained in:
Caleb Doxsey 2020-12-01 07:58:01 -07:00 committed by GitHub
parent 0d7980faef
commit b121e436f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 5 deletions

View file

@ -12,8 +12,8 @@
<div class="card">
<div class="card-header">
<h2>Current user</h2>
{{with .User.GetClaim "picture"}}
<img class="icon" src="{{.}}" alt="user image" />
{{range .User.GetClaim "picture"}}
<img class="icon" src="{{.|safeURL}}" alt="user image" />
{{else}}
<img
class="icon"
@ -45,7 +45,7 @@
/>
</label>
{{else}}
{{with .User.GetClaim "given_name"}}
{{range .User.GetClaim "given_name"}}
<label>
<span>Given Name</span>
<input
@ -57,7 +57,7 @@
/>
</label>
{{end}}
{{with .User.GetClaim "family_name"}}
{{range .User.GetClaim "family_name"}}
<label>
<span>Family Name</span>
<input