auth
161:849f3820b164
Go to Latest
auth/authd/templates/simple.gotmpl
Stop soft-deleting Profiles and actually delete them.
The information we're storing in Profiles isn't unique enough that we should go
through the hassle we're going through to soft-delete it.
Add a deleteProfile method to our profileStore, and implement it for our
postgres and memstore implementations.
Add a DeleteProfile wrapper for our Context.
Remove the Deleted property from the Profile type and the ProfileChange type,
and update references to it.
Stop cleaning up after our Profile in the UpdateProfileHandler, because there's
no longer any way to delete the Profile from the UpdateProfileHandler.
Update our get/list* methods so they don't filter on the non-existent Deleted
property anymore.
Update our SQL schema definition to not include the deleted column.
Update our profile tests to use the DeleteProfile method and stop comparing the
no-longer-existing Deleted property.
1 {{ define "login" }}<html>
6 <h1>Please log into your account</h1>{{ if .errors }}
8 <ul>{{ range .errors }}
10 </ul>{{ end }}{{ end }}
12 <p>Username: <input type="text" name="login"></p>
13 <p>Password: <input type="password" name="passphrase"></p>
14 <p><input type="submit"></p>
19 {{ define "get_grant" }}<html>
21 <title>Grant access</title>
25 <p>{{ .error }}</p>{{ end }}{{ if .internal_error }}
27 <p>{{ .internal_error }}</p>{{ end }}{{ if not .error }}{{ if not .internal_error }}<h1>Grant access</h1>
28 <p>{{ .client.Name }} is requesting access to your account. if you grant it, you'll be redirected to {{ .redirectURL }}.{{ if .scopes }} Their access will be limited to:</p>
29 <ul>{{ range .scopes }}
30 <li>{{ .Name }}{{ if .Description }}: {{ .Description }}{{ end }}</li>{{ end }}
32 <p>You are granting access for {{ .profile.Name }}.</p>{{ end }}{{ end }}
34 <input type="submit" name="grant" value="approved">
35 <input type="hidden" name="csrftoken" value="{{ .csrftoken }}">