Skip to content

Commit

Permalink
- new auth view initial
Browse files Browse the repository at this point in the history
- new api initial
  • Loading branch information
viktor-silakov committed Aug 6, 2022
1 parent 1d2cd6c commit 9dd3b29
Show file tree
Hide file tree
Showing 119 changed files with 550,075 additions and 52,928 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ rules:
exports: 'never'
functions: 'ignore'
global-require: 'off'
import/no-extraneous-dependencies: 0
import/no-extraneous-dependencies: [ "error", { "devDependencies": true } ]
indent:
- 'error'
- 4
Expand All @@ -48,7 +48,7 @@ rules:
new-cap:
- 'error'
- newIsCap: true
capIsNewExceptions: [ 'ObjectId' ]
capIsNewExceptions: [ 'ObjectId', 'Router' ]
require-jsdoc:
- 'error'
- require:
Expand All @@ -64,4 +64,4 @@ rules:
- 'off'
no-underscore-dangle:
- 'error'
- allow: ['_id']
- allow: [ '_id' ]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ npm run clear
| `SYNGRISI_PAGINATION_SIZE` | + | - | Number of tests items on that return `/checks?page={page_num}` API | `50` |
| `SYNGRISI_TEST_MODE` | + | + | Enables test admin user if equal `1`, used only for tests purposes | `0` |
| `SYNGRISI_DISABLE_FIRST_RUN` | + | + | Disable first run procedure, disabled if equal `1`, used only for tests purposes | `0` |
| `SYNGRISI_DISABLE_DEV_CORS` | + | - | Disable CORS for vite dev server, only for dev and test purposes | `-` |

## Devices list

Expand Down
2 changes: 1 addition & 1 deletion lib/ensureLogin/ensureLoggedIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const handleBasicAuth = async (req) => {
}

if (process.env.SYNGRISI_AUTH === '1') {
log.error(`user is not authenticated - ${req.originalUrl}`, $this, logOpts);
log.info(`user is not authenticated - ${req.originalUrl}`, $this, logOpts);

result.type = 'redirect';
result.status = 301;
Expand Down
Loading

0 comments on commit 9dd3b29

Please sign in to comment.