Code Monkey home page Code Monkey logo

Comments (4)

charIeszhao avatar charIeszhao commented on May 30, 2024

Thanks for reporting. This is reproducible and thus confirmed as a bug. We'll let you know when it's fixed.

A workaround: You can modify the general_required and username (lowercase) fields, as currently the username required error message is a conjunction of these two.

from logto.

charIeszhao avatar charIeszhao commented on May 30, 2024

Just double checked and confirmed this is currently "by design". At sign-in flow, since the "sign-in identifiers" might be more than one (you can enable username, email and phone at the same time at sign-in), so we don't actually know what the field type is. Therefore, general_required i18n key is used instead of the specific key username_required.

The username_required key, however, is only used at registration flow, since the sign-up identifier can only be one.

We'll still try to improve the user experience in the future.

from logto.

pramotetrs avatar pramotetrs commented on May 30, 2024

Thanks for workaround. However, I've changed username to the custom value but some part of error cannot be changed or be translated. There still be ทดสอบ is required.

image

And the forgot-password flow is also affected by this bug as the following. The username in sign-in page, and email in forgot-password page are using the same general_required error message.

image

Changing the value of general_required affect both sign-in and forgot-password page. Is there any workaround? @charIeszhao

from logto.

charIeszhao avatar charIeszhao commented on May 30, 2024

@pramotetrs, I don't think I get your last question, as it seems it's going work if you change the value of general_required, isn't it? Why do you ask for another workaround?

from logto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.