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-21 09:09
Reporterasier_perezView Statuspublic 
Assigned Toignacio_deandres 
PrioritynormalResolutionfixedFixed in Version25Q2
StatusclosedFix 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 [^]
(0174448)
hgbot (developer)
2025-01-21 09:09

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1725 [^]
(0174449)
hgbot (developer)
2025-01-21 09:09

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: a5a0ac8dc7ccb9560fcfe73b71477ac9bc2b973e
Author: Ignacio De Andrés <i.deandres@orisha.com>
Date: 21-01-2025 08:37:52
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/a5a0ac8dc7ccb9560fcfe73b71477ac9bc2b973e [^]

FIXES ISSUE-57626: Fixed 'Forgot password' button not being displayed when there's not information from the backend server. It will now show it anyway (as this only happens in the first login)

---
M web-jspack/org.openbravo.core2/src/components/AuthProvider/LoginForm.jsx
---

- 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
2025-01-21 09:09 hgbot Resolution open => fixed
2025-01-21 09:09 hgbot Status scheduled => closed
2025-01-21 09:09 hgbot Note Added: 0174448
2025-01-21 09:09 hgbot Fixed in Version => 25Q2
2025-01-21 09:09 hgbot Note Added: 0174449


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker