mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
update env.example and fix token-issue
This commit is contained in:
14
.env.example
14
.env.example
@ -1,15 +1,15 @@
|
||||
APP_ENV=local
|
||||
APP_KEY=
|
||||
APP_DEBUG=true
|
||||
APP_ENV=production
|
||||
APP_KEY=base64:kgk/4DW1vEVy7aEvet5FPp5un6PIGe/so8H0mvoUtW0=
|
||||
APP_DEBUG=false
|
||||
APP_LOG_LEVEL=debug
|
||||
APP_URL=http://localhost
|
||||
APP_URL=http://crater.test
|
||||
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=127.0.0.1
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=homestead
|
||||
DB_USERNAME=homestead
|
||||
DB_PASSWORD=secret
|
||||
DB_DATABASE=crater
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=bytefury
|
||||
|
||||
BROADCAST_DRIVER=log
|
||||
CACHE_DRIVER=file
|
||||
|
||||
18721
public/assets/css/laraspace.css
vendored
18721
public/assets/css/laraspace.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
191247
public/assets/js/app.js
191247
public/assets/js/app.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,6 +1,4 @@
|
||||
{
|
||||
"/assets/js/app.js": "/assets/js/app.js",
|
||||
"/assets/css/laraspace.css": "/assets/css/laraspace.css",
|
||||
"/assets/js/app.js.map": "/assets/js/app.js.map",
|
||||
"/assets/css/laraspace.css.map": "/assets/css/laraspace.css.map"
|
||||
"/assets/js/app.js": "/assets/js/app.js?id=d025b2d85b5f0847a142",
|
||||
"/assets/css/laraspace.css": "/assets/css/laraspace.css?id=361d275866b6299acb36"
|
||||
}
|
||||
|
||||
3
resources/assets/js/bootstrap.js
vendored
3
resources/assets/js/bootstrap.js
vendored
@ -92,8 +92,7 @@ global.axios.interceptors.response.use(undefined, function (err) {
|
||||
if (err.response.data.error === 'invalid_credentials') {
|
||||
window.toastr['error']('Invalid Credentials')
|
||||
}
|
||||
|
||||
if (err.response.data && err.response.statusText === 'Unauthorized') {
|
||||
if (err.response.data && (err.response.statusText === 'Unauthorized' || err.response.data === ' Unauthorized.')) {
|
||||
store.dispatch('auth/logout', true)
|
||||
} else {
|
||||
throw err
|
||||
|
||||
Reference in New Issue
Block a user