bugy / script-server

Web UI for your scripts with execution management
Other
1.57k stars 248 forks source link

Login page custom message above username #481

Open jarrah31 opened 3 years ago

jarrah31 commented 3 years ago

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.

bugy commented 3 years ago

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

jarrah31 commented 3 years ago

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. :(

erpheus commented 2 years ago

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 :)