Skip to content

Commit

Permalink
#2 Redirect to home page
Browse files Browse the repository at this point in the history
  • Loading branch information
Studio384 committed Oct 12, 2023
1 parent 7e3a32c commit ec5271a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/src/app/auth/ForgotPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function ForgotPassword() {

const { forgotPassword } = useAuth({
middleware: 'guest',
redirectIfAuthenticated: '/dashboard'
redirectIfAuthenticated: '/'
});

const submitForm = async (event) => {
Expand Down
2 changes: 1 addition & 1 deletion app/src/app/auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Login() {

const { login } = useAuth({
middleware: 'guest',
redirectIfAuthenticated: '/dashboard'
redirectIfAuthenticated: '/'
});

const submitForm = async (event) => {
Expand Down
2 changes: 1 addition & 1 deletion app/src/app/auth/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Register() {

const { register } = useAuth({
middleware: 'guest',
redirectIfAuthenticated: '/dashboard'
redirectIfAuthenticated: '/'
});

const submitForm = async (event) => {
Expand Down
2 changes: 1 addition & 1 deletion app/src/app/auth/VerifyEmail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function VerifyEmail() {
const [status, setStatus] = useState(null);
const { logout, resendEmailVerification } = useAuth({
middleware: 'auth',
redirectIfAuthenticated: '/dashboard'
redirectIfAuthenticated: '/'
});

return (
Expand Down
2 changes: 1 addition & 1 deletion backend/app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RouteServiceProvider extends ServiceProvider
*
* @var string
*/
public const HOME = '/dashboard';
public const HOME = '/';

/**
* Define your route model bindings, pattern filters, and other route configuration.
Expand Down

0 comments on commit ec5271a

Please sign in to comment.