@ampath/esm-login-app 8.0.0-next.8 → 8.0.0-next.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"login","online":true,"offline":true},{"component":"root","route":"logout","online":true,"offline":true},{"component":"root","route":"change-password","online":true,"offline":true}],"extensions":[{"name":"location-picker","slot":"location-picker","component":"locationPicker","online":true,"offline":true},{"name":"logout-button","slot":"user-panel-bottom-slot","component":"logoutButton","online":true,"offline":true},{"name":"password-changer","slot":"user-panel-slot","component":"changePasswordLink","online":true,"offline":true},{"name":"location-changer","slot":"top-nav-info-slot","component":"changeLocationLink","online":true,"offline":true,"order":1}],"modals":[{"name":"change-password-modal","component":"changePasswordModal"}],"version":"8.0.0-next.8"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"login","online":true,"offline":true},{"component":"root","route":"logout","online":true,"offline":true},{"component":"root","route":"change-password","online":true,"offline":true}],"extensions":[{"name":"location-picker","slot":"location-picker","component":"locationPicker","online":true,"offline":true},{"name":"logout-button","slot":"user-panel-bottom-slot","component":"logoutButton","online":true,"offline":true},{"name":"password-changer","slot":"user-panel-slot","component":"changePasswordLink","online":true,"offline":true},{"name":"location-changer","slot":"top-nav-info-slot","component":"changeLocationLink","online":true,"offline":true,"order":1}],"modals":[{"name":"change-password-modal","component":"changePasswordModal"}],"version":"8.0.0-next.9"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampath/esm-login-app",
3
- "version": "8.0.0-next.8",
3
+ "version": "8.0.0-next.9",
4
4
  "license": "MPL-2.0",
5
5
  "description": "The login microfrontend for the OpenMRS SPA",
6
6
  "browser": "dist/esm-login-app.js",
@@ -185,8 +185,7 @@
185
185
  align-items: center;
186
186
  justify-self: flex-end;
187
187
  font-size: 0.75rem;
188
- color: $color-gray-70;
189
- color: $text-02;
188
+ color: blue;
190
189
  opacity: 0.85;
191
190
  white-space: nowrap;
192
191
  font-weight: bold;
@@ -47,7 +47,7 @@ export async function getOtp(username: string, password: string, email: string)
47
47
  const credentials = window.btoa(`${username}:${password}`);
48
48
 
49
49
  try {
50
- const url = `${etlBaseUrl}otp?${params.toString()}`;
50
+ const url = `${etlBaseUrl}/otp?${params.toString()}`;
51
51
 
52
52
  const res = await fetch(url, {
53
53
  method: 'GET',
@@ -70,7 +70,7 @@ export async function getOtp(username: string, password: string, email: string)
70
70
 
71
71
  export async function verifyOtp(username: string, password: string, otp: string) {
72
72
  const etlBaseUrl = await getEtlBaseUrl();
73
- const url = etlBaseUrl + 'verify-otp';
73
+ const url = etlBaseUrl + '/verify-otp';
74
74
  const credentials = window.btoa(`${username}:${password}`);
75
75
 
76
76
  const body = { username, otp };