Skip to content

Fix #1369 - make manage_users work again #1370

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

Merged
merged 1 commit into from
Dec 5, 2019

Conversation

soerface
Copy link
Contributor

@soerface soerface commented Dec 5, 2019

fixes #1369

The manage_users script currently does not work in the official docker image, since it compares to undefined. However, the returned variable is null, resulting in crashing of the script. (see #1369)

Additionally, I changed a return code in the createUser() function. This allows other scripts to distinguish between the failure reasons.

@soerface soerface force-pushed the patch-1 branch 3 times, most recently from 543fcdf to 873ab7e Compare December 5, 2019 01:16
@soerface soerface changed the title Fix #1369 Fix #1369 - make manage_users work again Dec 5, 2019
@jackycute
Copy link
Member

jackycute commented Dec 5, 2019

Thanks for contribution @soerface
I found few changes need to be made.

@Yukaii
Copy link
Member

Yukaii commented Dec 5, 2019

Hi @soerface thanks for your contribution! I've also added fixes #1369 so that this PR is linked to that issue and will close it automatically.

@Yukaii Yukaii added this to the 1.4.1 milestone Dec 5, 2019
@jackycute
Copy link
Member

Hi @soerface,
Could you please help to rebase and sign off the previous commit.

@soerface
Copy link
Contributor Author

soerface commented Dec 5, 2019

Hey @jackycute, all commits are signed now. Or would you like me to squash them all into a single commit?

@jackycute
Copy link
Member

Hey @jackycute, all commits are signed now. Or would you like me to squash them all into a single commit?

It would be nice if you can squash the last two commits, thank you.

Use another return code for "User already exist"
This allows external scripts differentiating between "failure" and "everything is fine"

Co-Authored-By: Max Wu <jackymaxj@gmail.com>
Signed-off-by: Soeren Wegener <wegener92@gmail.com>
@jackycute
Copy link
Member

Thanks @soerface

@jackycute jackycute merged commit 510ccf7 into hackmdio:develop Dec 5, 2019
@soerface soerface deleted the patch-1 branch December 6, 2019 13:44
edgarogh pushed a commit to WartaPoirier-corp/codimd that referenced this pull request Sep 21, 2021
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.

manage_users tries to read property 'email' of null
3 participants