Skip to content

Commit

Permalink
Merge pull request #84 from unb-mds/80/refactor/ajustar-a-url-de-logi…
Browse files Browse the repository at this point in the history
…n-para-ser-apenas

Task(Back-end): Alteração da URL de login para a raiz da aplicação
  • Loading branch information
Potatoyz908 authored Nov 30, 2024
2 parents 4f155be + 15d7c12 commit 7e1a915
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
Binary file modified API/AcheiUnB/__pycache__/urls.cpython-312.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion API/AcheiUnB/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,6 @@

SITE_ID = 1
LOGIN_REDIRECT_URL = "/certu"
LOGOUT_REDIRECT_URL = "/login/"
LOGOUT_REDIRECT_URL = ""
MESSAGE_STORAGE = "django.contrib.messages.storage.session.SessionStorage"
LANGUAGE_CODE = "pt-br"
2 changes: 1 addition & 1 deletion API/AcheiUnB/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('allauth.urls')), # Rotas do Allauth para login pelo Microsoft
path('login/', auth_views.LoginView.as_view(template_name='users/login.html'), name='login'),
path('', auth_views.LoginView.as_view(template_name='users/login.html'), name='login'),
path('', include('users.urls')), # Inclui as rotas do app "users"
path('api/token/', TokenObtainPairView.as_view(), name='token_obtain_pair'), # Obter token de acesso e refresh
path('api/token/refresh/', TokenRefreshView.as_view(), name='token_refresh'), # Atualizar token de acesso
Expand Down
Binary file modified API/users/__pycache__/models.cpython-312.pyc
Binary file not shown.
Binary file modified API/users/__pycache__/views.cpython-312.pyc
Binary file not shown.

0 comments on commit 7e1a915

Please sign in to comment.