Giter VIP home page Giter VIP logo

Comments (6)

ikeough avatar ikeough commented on July 17, 2024

After attempting to login, the user receives:

Login to Hypar failed.
The publish command was not recognized. Try 'hypar help'.

This is a red herring. The failed login attempt is making PublishCommand.CanExecute return false. This does require a fix though.

from elements.

ikeough avatar ikeough commented on July 17, 2024

image

from elements.

ikeough avatar ikeough commented on July 17, 2024

Cognito has policies in place for password requirements:
image
It's possible that the new password supplied by the user doesn't meet these criteria and we're not handling the response.

from elements.

ikeough avatar ikeough commented on July 17, 2024

I was able to reproduce this by creating a new user with a valid temporary password, but by trying to create an invalid password:

Enter your user name:
test2
Enter your password:
************
	waiting...
	Enter your desired new password:
****
Login to Hypar failed.
The publish command was not recognized. Try 'hypar help'.

We need to catch whatever exception is provided by the Cognito API regarding a non-conforming password.

from elements.

ikeough avatar ikeough commented on July 17, 2024

Now when a user attempts to enter a new password that doesn't conform to the policy, they receive the following:

Enter your user name:
test3
Enter your password:
************
	waiting...
	Enter your desired new password:
*****
Passwords must be a minimum of 8 characters, and contain upper and lower case letters, a number, and a special character.
The publish command was not recognized. Try 'hypar help'.

from elements.

ikeough avatar ikeough commented on July 17, 2024

This is fixed in 4c044c8.

from elements.

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.