Skip to content

Commit

Permalink
[FIX] address issue with blue "Get Started" button
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Levitas committed Jan 18, 2024
1 parent 47be17c commit 8f82f88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -ex

BRAINLIFE_AUTHENTICATION=true
while getopts "d:" flag; do
while getopts "d" flag; do
case $flag in
d)
BRAINLIFE_AUTHENTICATION=false
Expand Down
2 changes: 1 addition & 1 deletion generate_keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ex

if [ ! -f api/auth.key ]; then
if [ ! -f api/ezbids.key ]; then
openssl genrsa -out api/ezbids.key 2048
chmod 600 api/ezbids.key
openssl rsa -in api/ezbids.key -pubout > api/ezbids.pub
Expand Down
4 changes: 2 additions & 2 deletions ui/src/LandingPageContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
import { defineComponent } from 'vue';
import { mapState } from 'vuex';
import LandingPageAnimation from './LandingPageAnimation.vue';
import { hasJWT } from './lib';
import { hasJWT, hasAuth } from './lib';
export default defineComponent({
components: {
LandingPageAnimation: LandingPageAnimation,
Expand All @@ -112,7 +112,7 @@ export default defineComponent({
window.open(`https://brainlife.io/docs/using_ezBIDS/`);
},
onClickGetStarted() {
if (hasJWT()) {
if (!hasAuth() || hasJWT()) {
this.$router.push('/convert');
return;
}
Expand Down

0 comments on commit 8f82f88

Please sign in to comment.