script-server icon indicating copy to clipboard operation
script-server copied to clipboard

Login page custom message above username

Open jarrah31 opened this issue 4 years ago • 3 comments

Would it be possible to have a conf.json option to specify a short message within the username/password logon page please?

At the moment I can do a very simple edit on the login.html file to produce what I need, but it would be better if there was an official way to specify a message in the server config file.

My use case is to inform the user which type of credentials they should use to log into script server.

Thanks.

jarrah31 avatar Aug 09 '21 09:08 jarrah31

Hi @jarrah31 I won't be able to implement it. Do you want to try to create a PR for it?

bugy avatar Aug 09 '21 20:08 bugy

Fair enough, thanks for the update.

I often wish I was a coder to help with projects like this, but I can only do simple things like bash scripts. :(

jarrah31 avatar Aug 10 '21 09:08 jarrah31

I have been able to implement this using the theming functionality, by adding the following to my theme.css:

/* Hackily add some text to the log-in panel */
#login-panel > .card-image::after {
  content: "Internal Scripts";
  color: black;
  margin: 12px;
  display: block;
  text-align: center;
  font-size: 1.3em;
}

Not the best solution but it works without altering the code. Hope this helps :)

erpheus avatar Dec 09 '21 13:12 erpheus