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

Client login service #2678

Open
wants to merge 27 commits into
base: development
Choose a base branch
from
Open

Client login service #2678

wants to merge 27 commits into from

Conversation

noodlemoodle
Copy link
Collaborator

@noodlemoodle noodlemoodle commented Apr 4, 2023

move signin signup logic to client login service

@jlhughes jlhughes changed the title DO_NOT_MERGE Client login service Client login service Apr 14, 2023
@jlhughes jlhughes changed the title Client login service [DO_NOT_MERGE] Client login service Apr 14, 2023
@noodlemoodle noodlemoodle changed the title [DO_NOT_MERGE] Client login service Client login service Apr 17, 2023
Copy link
Collaborator

@jlhughes jlhughes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@sarthak-marwaha sarthak-marwaha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, should make a ticket to remove all the old SignIn/SignUp models once this is tested

@noodlemoodle
Copy link
Collaborator Author

LGTM, should make a ticket to remove all the old SignIn/SignUp models once this is tested

https://nanopay.atlassian.net/browse/NP-9554

required: true,
validationTextVisible: false,
label: 'Email or Username',
preSet: function(_, n) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you just say trim: true ?

inputValidation: /\S+@\S+\.\S+/,
restrictedCharacters: /^[^\s]$/,
displayMode: foam.u2.DisplayMode.RW
};
},
validateObj: function(email) {
validateObj: function(email, emailAvailable) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make these validationPredicates instead? For all of them?

},
{
name: 'wizardVerifyEmail',
code: async function(x, email, username, password) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just use this verifyEmail flow across the board? Dont see why we need to maintain two of them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants