owncloud / owncloud/ocis

Error code on change password fail due to new password equals old password is not descriptive

Open
#8,057 0 comments 0 reactions 0 assignees View on GitHub
Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

## Describe the bug
To show a descriptive error in the Web UI, we need to have a meaningful error code, this is missing currently.

![image](https://github.com/owncloud/web/assets/26169327/c8413954-8578-40f0-82cd-e9cb7abd7ca7)

**_Also typo differnt**

## Steps to reproduce
1. Call changeOwnPassword api endpoint with old password is equal to the new one
2. Get an error

## Expected behavior
Error code or innerError code should be descriptive like `errNewPasswordCantEqualOld`

## Actual behavior
Error code not descriptive

## Setup
Please describe how you started the server and provide a list of relevant environment variables or configuration files.

```console
OCIS_XXX=somevalue
OCIS_YYY=somevalue
PROXY_XXX=somevalue
```

## Additional context
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.