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

fix(agama-lab-frontend): Migrate to new flow designer #28

Closed
wants to merge 12 commits into from
10 changes: 5 additions & 5 deletions code/org.gluu.agama.pw.basic.flow
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ validationResult = {}
// Get an instance of PasswordService Class
passwordValidationService = Call org.gluu.agama.pw.basic.PasswordService#getInstance
// Iterate x times max
Repeat 3 times max
currentIteration = Repeat 3 times max
// Retrieve user credentials from UI
credentials = RRF "login-basic.ftlh" validationResult
// Log the successfull used credentials retrieval.
Expand All @@ -19,12 +19,12 @@ Repeat 3 times max
// add entry in log file for successfull login attempt
Log "@info Valid credentials provided."
// Password validation completed successfuly!
it_ehffp = {success:true, data: { userId: credentials.username}}
Finish it_ehffp
it_onnjz = {success:true, data: { userId: credentials.username}}
Finish it_onnjz
// Invalid credentials provided
Log "@info Invalid credentials provided."
// Provide feedback about the error message to user
validationResult.errorMessage = "The provided credentials are not valid. Please try again!"
// Maximum attempts reached. Password validation failed!
it_tsxgd = {success:false, error: "Password validation failed!"}
Finish it_tsxgd
it_amwkx = {success:false, error: "Password validation failed!"}
Finish it_amwkx
Loading