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

e-mails in simcore should be case-insensitives #812

Closed
elisabettai opened this issue Dec 16, 2022 · 1 comment · Fixed by ITISFoundation/osparc-simcore#3998
Closed

e-mails in simcore should be case-insensitives #812

elisabettai opened this issue Dec 16, 2022 · 1 comment · Fixed by ITISFoundation/osparc-simcore#3998
Assignees
Labels
Feedback Feedback through frontend type:bug Issue that prevents to perform a certain task, features that don't work as t
Milestone

Comments

@elisabettai
Copy link
Contributor

Long Story Short
When adding a collaborator I want to use the email address I normally use to contact him/her

Expected Behavior
Adding the collaborator with email name.SURNAME@domain should work (I am used to send email to this address)

Actual behaviour
If I add a collaborator with email like name.SURNAME@domain, that doesn't work

Steps to reproduce
A user registers with name.surname@domain in the DB.
Trying adding him to an organization using name.SURNAME@domain fails

Additional context
See #807

@elisabettai elisabettai added type:bug Issue that prevents to perform a certain task, features that don't work as t Feedback Feedback through frontend labels Dec 16, 2022
@odeimaiz odeimaiz changed the title Some users wants to use emails with capital letters Some users want to use emails with capital letters Feb 16, 2023
@pcrespov
Copy link
Member

pcrespov commented Mar 2, 2023

NOTE:

from pydantic import EmailStr, validate_email

class CaseInsensitiveEmailStr(EmailStr):
    @classmethod
    def validate(cls, value: EmailStr) -> EmailStr:
        _, email = validate_email(value)
        return email.lower()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feedback Feedback through frontend type:bug Issue that prevents to perform a certain task, features that don't work as t
Projects
None yet
3 participants