Skip to content

Commit

Permalink
Merge pull request #45 from TeskaLabs/refactor/last-login-info-retrie…
Browse files Browse the repository at this point in the history
…ving

Add parameter last_login to obtain last login info
  • Loading branch information
Pe5h4 authored Jul 3, 2023
2 parents fd7ed9e + 9f8ff47 commit e2a7d61
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Release Candidate

## v23.27-beta

### Compatibility

To display last successful and unsuccessful login information, Seacat Auth service [v23.27-beta](https://github.com/TeskaLabs/seacat-auth/releases/tag/v23.27-beta) and newer must be used.

### Features

- ASAB WebUI submodule version bump [[3a35738](https://github.com/TeskaLabs/asab-webui/commit/3a3573806e2964efbf5e5bb02c15acc9af41c8ac)] commit (INDIGO Sprint 230609, [!40](https://github.com/TeskaLabs/seacat-admin-webui/pull/40))
Expand All @@ -10,6 +16,8 @@

- Changed button title from "Create New Credentials" to "New Credentials". (INDIGO 230609, [!42](https://github.com/TeskaLabs/seacat-admin-webui/pull/42))

- Add parameter `last_login=yes` to `GET /credentials/{cred_id}` endpoint to retrieve last login info. (INDIGO 230623, [!45](https://github.com/TeskaLabs/seacat-admin-webui/pull/45))

### Bugfix

- Fix CredentialsInfoCard, card will not resize when an error occurs in an input, disable `Save` button if hint about wrong input is present, error hint message be cleaned when user click on `Cancel` button (INDIGO 230623, [!41](https://github.com/TeskaLabs/seacat-admin-webui/pull/41))
Expand Down
2 changes: 1 addition & 1 deletion src/modules/auth/credentials/CredentialsDetailContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function CredentialsDetailContainer(props) {

const retrieveData = async () => {
try {
let response = await SeaCatAuthAPI.get(`/credentials/${credentials_id}`);
let response = await SeaCatAuthAPI.get(`/credentials/${credentials_id}?last_login=yes`);
setData(response.data);
setSuspended(response.data.suspended);
setProviderID(response.data._provider_id);
Expand Down

0 comments on commit e2a7d61

Please sign in to comment.