Skip to content

Commit

Permalink
Update homepage messaging about authenticating with justice identity (#…
Browse files Browse the repository at this point in the history
…1286)

* Update homepage messaging about authenticating with justice identity

* Add additional email domains

* Update the help section

* Add justice_email to admin panel, and add filter in order to count number of users that have completed

* Remove <code> usage
  • Loading branch information
michaeljcollinsuk authored Apr 9, 2024
1 parent 29036d2 commit 64da2d5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
6 changes: 5 additions & 1 deletion controlpanel/api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@ class UserAdmin(admin.ModelAdmin):
"username",
"auth0_id",
"email",
"justice_email",
"is_superuser",
"migration_state",
"last_login",
)
actions = [make_migration_pending]
exclude = ("password",)
list_filter = ("migration_state",)
list_filter = [
"migration_state",
("justice_email", admin.EmptyFieldListFilter),
]
search_fields = (
"username",
"email",
Expand Down
15 changes: 10 additions & 5 deletions controlpanel/frontend/jinja2/justice_email.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,23 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-xl">Authenticate with your Justice identity</h1>
<p class="govuk-body-l">As part of upcoming work to offer new tools and services, all Analytical Platform will need to authenticate with their Justice identity so that we can store your @justice.gov.uk email address.</p>
<p class="govuk-body">You will need to complete authentication by 30th April 2024. If you do not currently have a @justice.gov.uk email address, <a href="#" class="govuk-link">see our guidance on requesting one.</a></p>
<p class="govuk-body-l">We're planning some changes to how you log into the Analytical Platform. We are transitioning from using GitHub to your Microsoft email (@justice.gov.uk, @publicguardian.gov.uk, etc).</p>
<p class="govuk-body">For now all you need to do is click the button below to authenticate via Microsoft 365. This is a one-time operation which will link your current Analytical Platform account information to your Microsoft email address. This means you'll keep all your current permissions, and there's nothing extra you need to do.</p>
<p class="govuk-body">You will continue to log in to the Control Panel via your GitHub account as usual for now. You can read further information about these changes in the <a href="https://mojdt.slack.com/archives/C4PF7QAJZ/p1712592546423129">#analytical-platform-support</a> Slack channel.</p>
<p class="govuk-body"></p>
<div class="govuk-button-group">
<form method="POST" action=".">
{{ csrf_input }}
<button type="submit" class="govuk-button" data-module="govuk-button">
Authenticate with Justice identity
</button>
<a class="govuk-button govuk-button--secondary" href="{{ url('list-tools') }}">
Skip for now
</a>
</form>
<hr class="govuk-section-break govuk-section-break--l govuk-section-break--visible">
<h3 class="govuk-heading-s">If you don't have a Microsoft 365 account</h3>
<p class="govuk-body"><a href="https://mojprod.service-now.com/moj_sp?id=sc_cat_item&sys_id=7404ac3137b723005f7cd1b543990e3e">You can request one here</a>. Please raise a request for an account as soon as you can. It can take a week or more to get fully set up with the correct access.</p>
<p class="govuk-body"><a class="govuk-link" href="{{ url('list-tools') }}">Click here to access the Control Panel while you wait for your account.</a></p>
<hr class="govuk-section-break govuk-section-break--l govuk-section-break--visible">
<p class="govuk-body">If you have any questions or need assistance, please reach out to us on <a href="https://moj.enterprise.slack.com/archives/C06TC4KKKUL">#analytical-platform-github-identity-migration</a> Slack channel.</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 64da2d5

Please sign in to comment.