use uri query string
This commit is contained in:
parent
34ba4e627d
commit
1a380509fe
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
|||
import "dart:convert";
|
||||
import "dart:io";
|
||||
import "package:cli_tools/config.dart";
|
||||
import "package:enough_mail/enough_mail.dart" as mail;
|
||||
|
@ -113,15 +112,16 @@ If you have any issues, reply to this email.""",
|
|||
.addMiddleware(logRequests())
|
||||
.addHandler(
|
||||
(Router()..post("/", (Request request) async {
|
||||
final settings = container.read(SettingsController.provider)!;
|
||||
final body = await request.readAsString();
|
||||
final registration = Registration.fromJson(
|
||||
json.decode(await request.readAsString()),
|
||||
Uri.splitQueryString(body),
|
||||
);
|
||||
|
||||
final client = await container.read(
|
||||
ClientController.provider.future,
|
||||
);
|
||||
|
||||
final settings = container.read(SettingsController.provider)!;
|
||||
final room = client.getRoomByAlias(settings.adminRoom);
|
||||
final message =
|
||||
"""# Registration request
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue