Skip to content

Commit

Permalink
Updating the unauthorized message to include instructions on how to a…
Browse files Browse the repository at this point in the history
…ccept invite to Read group. Adding same site restrictions
  • Loading branch information
maxsibilla committed Nov 10, 2023
1 parent 57adbb6 commit 82f20ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/components/AppLogin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ const AppLogin = ({ onLogin, unauthorized, onLogout }) => {
you have registered via the <a href={t('https://profile.hubmapconsortium.org/profile')} className='lnk--ic'>Member Registration Page <UserOutlined /></a>,
have provided Globus account information and are logging in with that account.</p>

<p>You will receive an email from Globus notifying that you have been invited to join
the <strong className={robotoBold.className}>{t('HuBMAP-Read')}</strong> group. You must click the link that says "Click here to apply for
membership" then click "Accept
Invitation" in the browser.</p>

<p>Once you have confirmed your registration information you can <a href='/login' className='lnk--ic'>log in <LoginOutlined /></a> again.</p>

<p>If you continue to have issues accessing this site please contact the &nbsp;
Expand Down
2 changes: 1 addition & 1 deletion src/context/AppContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const AppProvider = ({ children, messages }) => {
}

if (globusInfo) {
setCookie(KEY_AUTH, authorized)
setCookie(KEY_AUTH, authorized, {sameSite: "Lax"})
setUnauthorized(!authorized)
setGlobusInfo(globusInfo)
checkToken(globusInfo?.groups_token, authorized)
Expand Down
1 change: 1 addition & 0 deletions src/public/locale/en/sennet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"HuBMAP": "SenNet",
"HuBMAP Logo" : "SenNet Logo",
"HuBMAP-Read" : "SenNet - Read",
"hubmap-type-white250.png": "sennet-type-white.png",
"hubmap-favicon.ico": "sennet-favicon.ico",
"https://profile.hubmapconsortium.org/profile": "https://profile.sennetconsortium.org/profile",
Expand Down

0 comments on commit 82f20ad

Please sign in to comment.