adapt-security / adapt-authoring-localauth Goto Github PK
View Code? Open in Web Editor NEWModule which implements username/password (local) authentication
Module which implements username/password (local) authentication
See AdaptFrameworkModule for an example (it's recommended to add a separate file with API defs for non-trivial APIs to reduce clutter (see apidefs.js).
The email address on the login and password reset forms is case-sensitive (this is also the case in the old AT).
We get a number of support requests each month caused by users not expecting this and being unable to login.
In the past we said it was difficult to introduce this as there may already be some ATs set up with users whose email addresses would clash if we suddenly treated them as case insensitive (eg [email protected] and [email protected]).
As this is a clean slate I think this would be a really good opportunity to make the user email case insensitive.
We would need to modify:
Steps to recreate:
Expected behaviour - an error message stating 'invalid password' is displayed
Actual behaviour - nothing happens - form still displayed and editable, no error
Additional notes. The password that failed contained a # - are we supporting the usual range of 'special character's in passwords?
Although technically correct, should be more descriptive to the specific case.
{
"code":"UNAUTHENTICATED",
"message":"You are not logged in"
}
This needs fixing so that the correct error message is displayed.
Error will be thrown by LocalAuthModule.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.