Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth fix #54

Merged
merged 15 commits into from
Mar 7, 2019
Merged

Auth fix #54

merged 15 commits into from
Mar 7, 2019

Conversation

notimmates
Copy link
Contributor

@notimmates notimmates commented Mar 6, 2019

#51

src/app.js Outdated
@@ -17,7 +17,7 @@ app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'twig');
require('./utils/twig');

app.use(logger('dev'));
app.use(logger('dev '));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему он все время ставит тут пробел?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не знаю

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

У меня даже не индексировался этот файл в git status

@@ -28,6 +28,10 @@ router.get('/auth', csrfProtection, function (req, res) {
router.post('/auth', parseForm, csrfProtection, async (req, res) => {
let userDoc = await Users.get();

if (!userDoc) {
throw new Error('Password not set');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А что будет у пользователя в этот момент?
Лучше возвращать какое-нибудь сообщение

@notimmates notimmates merged commit 717fd3f into master Mar 7, 2019
@talyguryn talyguryn deleted the auth-fix branch March 14, 2019 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants