mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-28 16:08:38 +00:00
eula license customizability
This commit is contained in:
parent
1d1099ed4e
commit
a9c41608aa
1 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.";
|
|||
User? user = await this.database.UserFromGameRequest(this.Request);
|
||||
if (user == null) return this.StatusCode(403, "");
|
||||
|
||||
string eulaText = ServerConfiguration.Instance.EulaText;
|
||||
|
||||
eulaText = eulaText.Replace("%licence", $"{license}\n");
|
||||
eulaText = eulaText.Replace("\\n", "\n"); // just in case, may be redundant
|
||||
|
||||
return this.Ok($"{license}\n{ServerConfiguration.Instance.EulaText}");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue