Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(document).ready(function() {
- var isAuth = "<?php echo Auth::check(); ?>";
- if (location.href === 'http://local.myapp.in/login/')
- {
- if (isAuth) location.href('/home');
- }
- else
- {
- if (!isAuth) location.href('/login');
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement