Skip to content

Commit 0ab6858

Browse files
committed
minor fixes
1 parent e97a77e commit 0ab6858

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/java/com/researchspace/webapp/controller/UserProfileController.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ public static class ApiKeyInfo {
773773
"API key details cannot be accessed when 'operating' as another user");
774774
}
775775
User user = userManager.getAuthenticatedUserInSession();
776-
SECURITY_LOG.info("User [{}] asked to see their apiKey", user.getUsername());
776+
SECURITY_LOG.info("User [{}] asked to see their API key", user.getUsername());
777777

778778
Optional<UserApiKey> optKey = apiKeyMgr.getKeyForUser(user);
779779
if (!optKey.isPresent()) {

src/main/webapp/scripts/pages/userform.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,6 @@ function initApiKeyDisplay () {
521521

522522
$(document).on("click", "#apiKeyRegenerateBtn", function(e) {
523523
e.preventDefault();
524-
e.stopPropagation();
525524

526525
$.get('/vfpwd/ajax/checkVerificationPasswordNeeded', function(response) {
527526
if (response.data) {
@@ -532,7 +531,9 @@ function initApiKeyDisplay () {
532531
});
533532
});
534533

535-
$(document).on("click", "#apiKeyRevokeBtn", function(e) {
534+
$(document).on("click", "#apiKeyRevokeBtn", function(e) {
535+
e.preventDefault();
536+
536537
$.post('/userform/ajax/apiKey', {"_method":"DELETE"}, function (intDeleted){
537538
if (intDeleted > 0) {
538539
RS.defaultConfirm("Key deleted");

0 commit comments

Comments
 (0)