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

User is created successfully with empty/no password #197

Open
jasson99 opened this issue Sep 2, 2020 · 0 comments
Open

User is created successfully with empty/no password #197

jasson99 opened this issue Sep 2, 2020 · 0 comments

Comments

@jasson99
Copy link

jasson99 commented Sep 2, 2020

Description:

User is created successfully even when the password is empty or password is not provided during user creation. Thus user created without password exists.

How to reproduce:

  1. Create user as:
curl -s -k -X POST https://localhost:9200/ocs/v1.php/cloud/users -H "OCS-APIREQUEST=true" -d username=brand-new-user -d userid=brand-new-user -d [email protected] -d password= -u admin:admin | xmllint --format -

Then the response is:

<ocs>
  <meta>
    <status>ok</status>
    <statuscode>100</statuscode>
    <message>OK</message>
  </meta>
  <data>
    <enabled>true</enabled>
    <id>brand-new-user</id>
    <username>brand-new-user</username>
    <displayname/>
    <email>[email protected]</email>
    <uidnumber>0</uidnumber>
    <gidnumber>0</gidnumber>
  </data>
</ocs>
  1. Or create user as:
curl -s -k -X POST https://localhost:9200/ocs/v1.php/cloud/users -H "OCS-APIREQUEST=true" -d username=brand-new-user -d userid=brand-new-user -d [email protected] -u admin:admin | xmllint --format -

Then the response is:

<ocs>
  <meta>
    <status>ok</status>
    <statuscode>100</statuscode>
    <message>OK</message>
  </meta>
  <data>
    <enabled>true</enabled>
    <id>brand-new-user1</id>
    <username>brand-new-user1</username>
    <displayname/>
    <email>[email protected]</email>
    <uidnumber>0</uidnumber>
    <gidnumber>0</gidnumber>
  </data>
</ocs>

@jasson99 jasson99 added the bug Something isn't working label Sep 2, 2020
@jasson99 jasson99 changed the title User is created with empty/no password User is created successfully with empty/no password Sep 2, 2020
@exalate-issue-sync exalate-issue-sync bot added p3-medium and removed bug Something isn't working labels Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant