launchurl

This commit is contained in:
femsci 2023-10-01 10:45:24 +02:00
parent 5cfc595cd6
commit 51e29884cd
Signed by: femsci
GPG key ID: 08F7911F0E650C67
3 changed files with 12 additions and 2 deletions

View file

@ -17,6 +17,7 @@ public class UserManager
private readonly IServiceProvider _serv; private readonly IServiceProvider _serv;
public async Task InitAsync() public async Task InitAsync()
{ {
using var scope = _serv.CreateAsyncScope(); using var scope = _serv.CreateAsyncScope();
@ -24,6 +25,7 @@ public class UserManager
if (resp.StatusCode == HttpStatusCode.OK) if (resp.StatusCode == HttpStatusCode.OK)
{ {
User = (await resp.Content.ReadFromJsonAsync<UserModel>())!; User = (await resp.Content.ReadFromJsonAsync<UserModel>())!;
Console.WriteLine($"User: {User.Id}");
} }
} }

View file

@ -24,3 +24,11 @@
</article> </article>
</main> </main>
</div> </div>
@code {
protected override async Task OnInitializedAsync()
{
Console.WriteLine($"meow: {usr.IsAuthorized}");
Console.WriteLine($"Meow: {usr.User.Id}");
}
}

View file

@ -13,7 +13,7 @@
"commandName": "Project", "commandName": "Project",
"dotnetRunMessages": true, "dotnetRunMessages": true,
"launchBrowser": true, "launchBrowser": true,
"launchUrl": "/", "launchUrl": "login",
"applicationUrl": "http://localhost:5066", "applicationUrl": "http://localhost:5066",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
@ -23,7 +23,7 @@
"commandName": "Project", "commandName": "Project",
"dotnetRunMessages": true, "dotnetRunMessages": true,
"launchBrowser": true, "launchBrowser": true,
"launchUrl": "/", "launchUrl": "login",
"applicationUrl": "https://localhost:7203;http://localhost:5066", "applicationUrl": "https://localhost:7203;http://localhost:5066",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"