Skip to content

Commit

Permalink
Merge pull request #1013 from kartoza/set-every-user-to-active
Browse files Browse the repository at this point in the history
patch: set every user to is active
  • Loading branch information
tinashechiraya authored May 6, 2024
2 parents 86ca17b + dd4d784 commit 02dec8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions deployment/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ fi
# create super user if one doesn't exist
python manage.py shell -c "from django.contrib.auth.models import User; User.objects.create_superuser('${DJANGO_SUPERUSER_USERNAME}', '${DJANGO_SUPERUSER_EMAIL}', '${DJANGO_SUPERUSER_PASSWORD}')" 2>/dev/null || echo 'Superuser already exists, skipping.'

echo 'Updating active field for all users...'
export PGPASSWORD="${POSTGRES_PASS}"
psql -d "${DJANGO_DB}" -p 5432 -U "${POSTGRES_USER}" -h "${DATABASE_HOST}" -c "UPDATE auth_user SET is_active = TRUE;"


# Run tests
echo 'Running tests.'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const Footer: React.FC<FooterProps> = (props) => {
alt="Kartoza"
/>
</a>
<a href="#" target="_blank" rel="noopener noreferrer">
<a href="javascript:void(0);" target="_blank" rel="noopener noreferrer">
<Img
className="h-[100px] md:h-auto object-contain"
src={`${globalVariables.staticPath}uMngeni-uThukela_ logo.jpg`}
Expand Down

0 comments on commit 02dec8f

Please sign in to comment.