Skip to content

Commit

Permalink
Fixed dashboard redirection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkBrines committed Oct 13, 2024
1 parent 1089c74 commit a51d80d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion resources/views/auth/register.edge
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Register
@section('content')
<section class="form-div" style="margin-top: 100px; padding-top:100px">
<p class="h2-form">Enregistrez-vous</p>
<form method="post" enctype="multipart/form-data">
<form method="post">
<input type="text" name="username" placeholder="Username" value="" required />

<input type="text" name="email" placeholder="Email" value="" required />
Expand Down
8 changes: 4 additions & 4 deletions start/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Route.group(() => {
}
}).prefix('/apps')
.middleware('silentAuth')

// ----------------------------------------------
// Auth
// ----------------------------------------------
Expand All @@ -90,7 +90,7 @@ Route.group(() => {
.as('auth.logoutProcess')
.middleware("auth")
}).prefix('/auth')


// ----------------------------------------------
// Dashboard
Expand All @@ -106,7 +106,7 @@ Route.group(() => {
Route.post('/profile', 'DashboardController.editProfile')
.as('dash.profile.edit')
}).prefix('/edit')
}).prefix('/dashboard').as('dash')
}).prefix('/dashboard')
.middleware('auth')
/**
* ----------------------------------------------
Expand Down Expand Up @@ -138,7 +138,7 @@ Route.group(() => {
})
.middleware(['auth', 'authAdmin'])
.prefix('/admin-panel')

/**
* ----------------------------------------------
* Development environment
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8294,11 +8294,6 @@ unique-slug@^2.0.0:
dependencies:
imurmurhash "^0.1.4"

universal-user-agent@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-6.0.0.tgz#3381f8503b251c0d9cd21bc1de939ec9df5480ee"
integrity sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==

universalify@^0.1.0:
version "0.1.2"
resolved "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz"
Expand Down

0 comments on commit a51d80d

Please sign in to comment.