Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
9a599f46
Commit
9a599f46
authored
Jul 15, 2020
by
ls1947
Browse files
accept any keys, that bouncey castle accepts
Don't show warning
parent
490ed56c
Changes
2
Hide whitespace changes
Inline
Side-by-side
bwreg-webapp/src/main/java/edu/kit/scc/webreg/bean/UserSshKeyManagementBean.java
View file @
9a599f46
...
...
@@ -137,12 +137,7 @@ public class UserSshKeyManagementBean implements Serializable {
keyList
.
add
(
key
);
newKey
=
""
;
newName
=
""
;
if
(
key
.
getPublicKey
()
==
null
)
{
messageGenerator
.
addResolvedWarningMessage
(
"warning"
,
"ssh_key_unknown_format"
,
false
);
}
else
{
messageGenerator
.
addResolvedInfoMessage
(
"info"
,
"ssh_key_deployed"
,
false
);
}
messageGenerator
.
addResolvedInfoMessage
(
"info"
,
"ssh_key_deployed"
,
false
);
}
catch
(
UnsupportedKeyTypeException
e
)
{
logger
.
warn
(
"An error occured whilst deploying key: "
+
e
.
getMessage
());
messageGenerator
.
addResolvedErrorMessage
(
"sshKeyMessage"
,
"error_msg"
,
e
.
toString
(),
false
);
...
...
bwreg-webapp/src/main/webapp/user/ssh-keys.xhtml
View file @
9a599f46
...
...
@@ -104,14 +104,6 @@
</p:panelGrid>
<p:commandButton
id=
"add"
action=
"#{userSshKeyManagementBean.deployKey()}"
value=
"#{messages.add}"
update=
"@form"
/>
<p:ajaxStatus
id=
"ajaxStatusPanel"
style=
"display: inline-block; margin-left: 8px; vertical-align: baseline;"
>
<f:facet
name=
"start"
>
<h:graphicImage
value=
"#{resource['/img/ajax-loader.gif']}"
alt=
"#{messages.loading}"
/>
</f:facet>
<f:facet
name=
"complete"
>
<h:outputText
value=
""
/>
</f:facet>
</p:ajaxStatus>
</p:dialog>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment