提交 67dd49a2 编写于 作者: J Jesse Glick

Helpful to show the user ID in the same place as the API token, since you will...

Helpful to show the user ID in the same place as the API token, since you will be using them together.
(With a security realm where the ID is an email address but a short name is used elsewhere, people can get confused.)
上级 68fbc8c6
......@@ -26,23 +26,11 @@ package jenkins.security.ApiTokenProperty;
f=namespace(lib.FormTagLib)
f.advanced(title:_("Show API Token"), align:"left") {
f.entry(title: _('User ID')) {
f.readOnlyTextbox(value: my.id)
}
f.entry(title:_("API Token"), field:"apiToken") {
f.readOnlyTextbox(id:"apiToken") // TODO: need to figure out the way to do this without using ID.
}
f.validateButton(title:_("Change API Token"),method:"changeToken")
}
//f.entry(title:_("API Token"),field:"apiToken") {
//raw("""
//<a href="#" class='showDetails'>${_("Show API token")}</a><div style="display:none">
//""")
// f.readOnlyTextbox()
//raw("""
//</div>
//""")
//}
//
//f.validateButton(title:"") {
//
//}
//
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册