Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0057626
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSminoralways2025-01-13 14:192025-01-20 12:29
Reporterasier_perezView Statuspublic 
Assigned Toignacio_deandres 
PrioritynormalResolutionopenFixed in Version
StatusscheduledFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0057626: [25Q1] "Forgot Password?" button does not appear before the first log in

DescriptionThe "Forgot Password?" button from the log-in page does not appear before the first log in. The isOnline variable in line 295 from LoginForm.jsx is false before the first log in.

After logging in for the first time, the isOnline variable is set to true and the button appears, but it should appear also before that.
Steps To ReproduceConfiguration
1) Log in back-office
2) Go to Preference window
3) Search for 'Terminal Authentication enabled' and open it
4) Change its value to 'Y' and save
5) Go to Client window
6) Select the 'The White Valley Group' record
7) In the 'Information' sub-tab, check the 'Allow Users to Request a Password by Email', and save changes

Reproducing the issue
1) Go to POS2 (either with cache cleared or just after doing the configuration from above)
2) Type the terminal key ID and the credentials, then click on 'Link Device'
3) At this point, the 'Forgot Password?' button should appear, but it doesn't. When debugging with developer tools, the isOnline has the value 'false', but it should be 'true'
Proposed SolutionisOnline is retrieved this way

  const isOnline = useSelector(
    state => !!state.RemoteServer.BackendServer?.isOnline
  );

In case of the first login, isOnline is undefined because no request to the server has been registered yet, so in this case it has to be assumed that the application is online.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0174391)
hgbot (developer)
2025-01-20 12:29

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1725 [^]

- Issue History
Date Modified Username Field Change
2025-01-13 14:19 asier_perez New Issue
2025-01-13 14:19 asier_perez Assigned To => Triage Platform Conn
2025-01-13 14:19 asier_perez Triggers an Emergency Pack => No
2025-01-17 10:54 adrianromero Assigned To Triage Platform Conn => ignacio_deandres
2025-01-17 10:56 adrianromero Proposed Solution updated
2025-01-17 10:57 adrianromero Status new => scheduled
2025-01-20 12:29 hgbot Note Added: 0174391


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker