Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
fix(startup): allow congregation account creation after mfa verification
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao authored May 31, 2022
1 parent 2ed7e76 commit 94a8deb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/startup/CongregationRequestSent.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const CongregationRequestSent = () => {
/>
</Box>

<Typography sx={{ lineHeight: 1.2, textAlign: 'justify' }}>
<Typography sx={{ lineHeight: 1.2 }}>
{t('login.requestAccountSent')}
</Typography>

Expand Down
2 changes: 1 addition & 1 deletion src/components/startup/CongregationSignUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const CongregationSignUp = () => {
email: userEmail,
cong_name: userTmpCongName,
cong_number: userTmpCongNumber,
app_requestor: 'lmm-oa',
app_requestor: 'lmmo',
};

if (apiHost !== '') {
Expand Down
2 changes: 1 addition & 1 deletion src/components/startup/UserMfaSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const UserMfaSetup = () => {

const data = await res.json();
if (res.status === 200) {
if (data.congregation) {
if (data.congregation.cong_name.length > 0) {
if (data.congregation.cong_role.length > 0) {
if (
data.congregation.cong_role.includes('lmmo') ||
Expand Down
2 changes: 1 addition & 1 deletion src/components/startup/UserMfaVerify.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const UserMfaVerify = () => {

const data = await res.json();
if (res.status === 200) {
if (data.congregation) {
if (data.congregation.cong_name.length > 0) {
if (data.congregation.cong_role.length > 0) {
if (
data.congregation.cong_role.includes('lmmo') ||
Expand Down

0 comments on commit 94a8deb

Please sign in to comment.