Commit cde0133a authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #17005 TIME 0:20 login message is not mandatory

parent ddb00507
......@@ -369,8 +369,8 @@ class ConfigurationController
if (empty($body)) {
return $response->withStatus(400)->withJson(['errors' => 'Body is not set or empty']);
} elseif (!Validator::stringType()->notEmpty()->validate($body['loginMessage'])) {
return $response->withStatus(400)->withJson(['errors' => 'Body loginMessage is empty or not a string']);
} elseif (!Validator::stringType()->validate($body['loginMessage'])) {
return $response->withStatus(400)->withJson(['errors' => 'Body loginMessage is not a string']);
}
$configuration = ConfigurationModel::getByIdentifier(['identifier' => 'customization']);
......
......@@ -31,14 +31,14 @@ export class CustomizationComponent implements OnInit {
) { }
async ngOnInit(){
await this.getLginMessage();
await this.getLoginMessage();
}
ngOnDestroy(): void {
tinymce.remove();
}
getLginMessage() {
getLoginMessage() {
return new Promise((resolve) => {
this.http.get('../rest/authenticationInformations').pipe(
tap((data: any) => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment