core: make user optional in token creation
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		| @ -136,7 +136,10 @@ export class Form<T> extends LitElement { | ||||
|                 json[element.name] = values; | ||||
|             } else if (element.tagName.toLowerCase() === "input" && element.type === "date") { | ||||
|                 json[element.name] = element.valueAsDate; | ||||
|             } else if (element.tagName.toLowerCase() === "input" && element.type === "datetime-local") { | ||||
|             } else if ( | ||||
|                 element.tagName.toLowerCase() === "input" && | ||||
|                 element.type === "datetime-local" | ||||
|             ) { | ||||
|                 json[element.name] = new Date(element.valueAsNumber); | ||||
|             } else if (element.tagName.toLowerCase() === "input" && element.type === "checkbox") { | ||||
|                 json[element.name] = element.checked; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer