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

Switch between email and password in user creation form issue #32619

Closed
PVince81 opened this issue Sep 6, 2018 · 4 comments · Fixed by #39306
Closed

Switch between email and password in user creation form issue #32619

PVince81 opened this issue Sep 6, 2018 · 4 comments · Fixed by #39306
Assignees
Milestone

Comments

@PVince81
Copy link
Contributor

PVince81 commented Sep 6, 2018

Steps

  1. Setup OC
  2. Go to the users page
  3. Type "user1"
  4. In the email field type "test", believing that this was the password field. Leave the value in the field.
  5. Click on the cog icon at the bottom left
  6. Click "Set password for user", this toggles the email field to be a password field
  7. Type in "test" as password
  8. Click "create"

Expected result

User created.

Actual result

Error message about invalid email address.
This is because the email field is just hidden and still has its value.

Solution is to either:

  1. clear the field automatically when toggling
    or
  2. ignore the hidden field when gathering form values

Version

ownCloud 10.0.1 RC1

@ownclouders
Copy link
Contributor

GitMate.io thinks possibly related issues are #27612 (Password forgotten usability issues), #4491 (Design issues with password change), #30511 (Password Email wont Set), #4538 (Some issue with password), and #16442 (How to disable user password reset?).

@davitol
Copy link
Contributor

davitol commented Sep 6, 2018

@PVince81 Maybe this exception thrown is related?

ErrorException: Undefined index: add_password
  File "/var/www/owncloud/settings/templates/users/main.php", line 85, in handleError
    class="checkbox" <?php if ($_['add_password'] === 'true') {
  File "/var/www/owncloud/settings/templates/users/main.php", line 85, in include
    class="checkbox" <?php if ($_['add_password'] === 'true') {
  File "/var/www/owncloud/lib/private/Template/Base.php", line 219, in load
    include $file;
  File "/var/www/owncloud/lib/private/Template/Base.php", line 194, in fetchPage
    return $this->load($this->template, $additionalParams);
  File "/var/www/owncloud/lib/private/legacy/template.php", line 236, in fetchPage
    $data = parent::fetchPage($additionalParams);
...
(6 additional frame(s) were not displayed)

@PVince81
Copy link
Contributor Author

PVince81 commented Sep 7, 2018

the exception is handled in #32621

this ticket here is not critical, moving to backlog for next release

@phil-davis
Copy link
Contributor

PR #39306 fixes this. I have tested manually.

micbar added a commit that referenced this issue Oct 6, 2021
Sanitize data that  gets sent to server on user create via webUI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants