Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
HID-2096: show message on login to native app users regarding decommi…
Browse files Browse the repository at this point in the history
…ssioning
  • Loading branch information
rupl committed Jul 13, 2020
1 parent ec13222 commit f5cba17
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
6 changes: 6 additions & 0 deletions src/app/components/auth/AuthController.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
thisScope.saving = false;
var twoFAModal;

if ($window.navigator.userAgent.indexOf('Cordova') !== -1) {
thisScope.nativeApp = true;
} else {
thisScope.nativeApp = false;
}

function onFirstLogin () {
thisScope.currentUser.setAppMetaData({login: true});
thisScope.currentUser.authOnly = false;
Expand Down
6 changes: 6 additions & 0 deletions src/app/components/auth/login.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<div class="row" ng-if="nativeApp">
<div class="col-xs-12">
<p class="alert alert--inline alert--danger" translate>In January 2021, the Humanitarian ID website and app will be decommissioned. Your HID account will remain valid as part of the stand-alone HID Authentication service which can be used to login to any of the partner platforms. More information about this decommissioning is available in the <a href="https://about.humanitarian.id/faqs#contacts-decommissioning">FAQs section</a>.</p>
</div>
</div>

<div class="row" class="login">
<div class="col-sm-8 offset-sm-2 col-md-6 offset-md-3 col-lg-6 offset-lg-0">
<div class="page-header page-header--login">
Expand Down
19 changes: 10 additions & 9 deletions src/po/template.pot
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ msgstr ""
msgid "Edit service"
msgstr ""

#: src/app/components/auth/login.html:9
#: src/app/components/auth/login.html:15
#: src/app/components/auth/password_reset.html:10
#: src/app/components/user/kiosk.html:127
#: src/app/components/user/kiosk.html:27
Expand Down Expand Up @@ -824,7 +824,7 @@ msgstr ""
msgid "Flag suspicious user"
msgstr ""

#: src/app/components/auth/login.html:23
#: src/app/components/auth/login.html:29
msgid "Forgot/Reset password"
msgstr ""

Expand Down Expand Up @@ -942,6 +942,7 @@ msgstr ""
msgid "If you want to join a list temporarily, add a check-out date. We’ll send you a reminder shortly before the given date and we’ll check you out automatically at the date you specified."
msgstr ""

#: src/app/components/auth/login.html:3
#: src/app/components/landing/landing.html:3
msgid "In January 2021, the Humanitarian ID website and app will be decommissioned. Your HID account will remain valid as part of the stand-alone HID Authentication service which can be used to login to any of the partner platforms. More information about this decommissioning is available in the <a href=\"https://about.humanitarian.id/faqs#contacts-decommissioning\">FAQs section</a>."
msgstr ""
Expand Down Expand Up @@ -1072,15 +1073,15 @@ msgstr ""
msgid "Locations"
msgstr ""

#: src/app/components/auth/login.html:4
#: src/app/components/auth/login.html:10
msgid "Log in to Humanitarian ID."
msgstr ""

#: src/app/components/header/header.html:90
msgid "Log out"
msgstr ""

#: src/app/components/auth/login.html:19
#: src/app/components/auth/login.html:25
#: src/app/components/header/header.html:71
msgid "Login"
msgstr ""
Expand Down Expand Up @@ -1418,7 +1419,7 @@ msgstr ""
msgid "Other lists you might be interested in"
msgstr ""

#: src/app/components/auth/login.html:13
#: src/app/components/auth/login.html:19
#: src/app/components/auth/reset_password.html:15
#: src/app/components/user/new-user.html:24
msgid "Password"
Expand Down Expand Up @@ -1569,7 +1570,7 @@ msgstr ""
msgid "Register a Humanitarian ID account"
msgstr ""

#: src/app/components/auth/login.html:22
#: src/app/components/auth/login.html:28
msgid "Register a new Humanitarian ID Account"
msgstr ""

Expand Down Expand Up @@ -2442,7 +2443,7 @@ msgstr ""
msgid "You were successfully checked into the list"
msgstr ""

#: src/app/components/auth/AuthController.js:101
#: src/app/components/auth/AuthController.js:107
msgid "You were successfully logged out."
msgstr ""

Expand Down Expand Up @@ -2509,7 +2510,7 @@ msgstr ""
msgid "Your device lost its internet connection."
msgstr ""

#: src/app/components/auth/login.html:10
#: src/app/components/auth/login.html:16
#: src/app/components/auth/password_reset.html:11
#: src/app/components/user/kiosk.html:28
msgid "Your email address"
Expand All @@ -2532,7 +2533,7 @@ msgstr ""
msgid "Your new password"
msgstr ""

#: src/app/components/auth/login.html:14
#: src/app/components/auth/login.html:20
#: src/app/components/user/new-user.html:26
#: src/app/components/user/new-user.html:33
msgid "Your password"
Expand Down

0 comments on commit f5cba17

Please sign in to comment.