5sControl / 5sControl/5s-webserver

bug with with re-adding Emails

Open
#84 2 comments 0 reactions 1 assignee Assigned to @Dimskay1988 View on GitHub
bug QA done
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Preconditions: пользователь авторизован, получена лицензия, создано подключение к БД, подключен SMTP server.
Summary: Configuration(notifications), при нажатии на кнопку add email возможно добавить уже используемый email.
1. Открыть приложение;
2. Открыть вкладку Configuration;
3. Открыть страницу notifications;
4. Правый клик по кнопке add email;
5. Ввести email(пример raketskiy.artyom@gmail.com);
6. Нажать Enter;
7. Правый клик по кнопке add email;
8. Ввести email(пример raketskiy.artyom@gmail.com);
9. Нажать Enter.
Result: email добавлен.
Expecte result: email не добавлен.

![Image](https://github.com/5sControl/server-/assets/113969187/c69ff753-c854-489c-94cd-facbeebb9935)

Contributor guide

Open the contributing guide

Research direction

The issue is in the notifications configuration page where duplicate emails can be added. Look for the frontend component handling the 'add email' button and the backend API endpoint that processes the email submission. Check for validation logic to prevent duplicates, likely in a file related to notifications or user settings. Verify by testing the add email flow after implementing the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.