Compare commits
3 Commits
adbca10cba
...
cd98df5a23
| Author | SHA1 | Date |
|---|---|---|
|
|
cd98df5a23 | |
|
|
0767992a57 | |
|
|
10aedca9a2 |
|
|
@ -17,7 +17,7 @@ public class ClubConfiguration : IEntityTypeConfiguration<Club>
|
|||
.IsRequired();
|
||||
|
||||
builder.Property(x => x.LoginName)
|
||||
.HasMaxLength(10)
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
|
||||
// Enum als int (Default) – explizit ist oft schöner
|
||||
|
|
|
|||
1633
src/Koogle.Infrastructure/Data/Migrations/20260107082529_IncreaseClubLoginNameLength.Designer.cs
generated
Normal file
1633
src/Koogle.Infrastructure/Data/Migrations/20260107082529_IncreaseClubLoginNameLength.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,40 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Koogle.Infrastructure.Data.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class IncreaseClubLoginNameLength : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "LoginName",
|
||||
schema: "app",
|
||||
table: "Clubs",
|
||||
type: "nvarchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(10)",
|
||||
oldMaxLength: 10);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "LoginName",
|
||||
schema: "app",
|
||||
table: "Clubs",
|
||||
type: "nvarchar(10)",
|
||||
maxLength: 10,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(50)",
|
||||
oldMaxLength: 50);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -176,8 +176,8 @@ namespace Koogle.Infrastructure.Data.Migrations
|
|||
|
||||
b.Property<string>("LoginName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("nvarchar(10)");
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<DateTime?>("ModifiedAt")
|
||||
.HasColumnType("datetime2");
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
@if (_model.LastThrow != null)
|
||||
{
|
||||
<MudAlert Severity="@GetLastThrowSeverity()" Class="mb-4" Dense="true">
|
||||
@(_ = GetLastThrowMessage())
|
||||
@(_ = GetLastThrowMessage().Result)
|
||||
</MudAlert>
|
||||
}
|
||||
|
||||
|
|
@ -339,7 +339,8 @@
|
|||
messages.Add($"{prevName} ist ausgeschieden!");
|
||||
}
|
||||
|
||||
return string.Join(" | ", messages);
|
||||
var res = string.Join(" | ", messages);
|
||||
return res;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
|
|
|||
|
|
@ -139,6 +139,17 @@
|
|||
Profil
|
||||
</MudNavLink>
|
||||
}
|
||||
|
||||
<MudDivider Class="my-2" />
|
||||
<MudNavGroup Title="Website"
|
||||
Icon="@Icons.Material.Filled.Web"
|
||||
Expanded="false">
|
||||
<MudNavLink Href="/"
|
||||
Match="NavLinkMatch.Prefix"
|
||||
Icon="@Icons.Material.Filled.Home">
|
||||
Home
|
||||
</MudNavLink>
|
||||
</MudNavGroup>
|
||||
</MudNavMenu>
|
||||
|
||||
@code {
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@
|
|||
Label="Login-Name"
|
||||
Variant="Variant.Outlined"
|
||||
Required="true"
|
||||
MaxLength="10"
|
||||
HelperText="Eindeutiger Kurzname (z.B. meinclub)"
|
||||
Style="text-transform: lowercase;"
|
||||
Class="mb-3" />
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
@page "/"
|
||||
@using Koogle.Web.Components.Layout
|
||||
@using Microsoft.AspNetCore.Components.Authorization
|
||||
|
||||
@layout PublicLayout
|
||||
|
||||
|
|
@ -26,9 +27,20 @@
|
|||
<MudButton Variant="Variant.Outlined" Color="Color.Inherit" StartIcon="@Icons.Material.Filled.Info" Href="#features">
|
||||
Mehr erfahren
|
||||
</MudButton>
|
||||
<MudButton Variant="Variant.Filled" Color="Color.Success" StartIcon="@Icons.Material.Filled.Login" Href="/account/login">
|
||||
Jetzt einloggen
|
||||
</MudButton>
|
||||
|
||||
|
||||
<AuthorizeView>
|
||||
<Authorized>
|
||||
<MudButton Variant="Variant.Filled" Color="Color.Success" StartIcon="@Icons.Material.Filled.Dashboard" Href="/dashboard">
|
||||
zur Anwendung
|
||||
</MudButton>
|
||||
</Authorized>
|
||||
<NotAuthorized>
|
||||
<MudButton Variant="Variant.Filled" Color="Color.Success" StartIcon="@Icons.Material.Filled.Login" Href="/account/login">
|
||||
Jetzt einloggen
|
||||
</MudButton>
|
||||
</NotAuthorized>
|
||||
</AuthorizeView>
|
||||
</MudStack>
|
||||
</MudStack>
|
||||
</MudItem>
|
||||
|
|
|
|||
Loading…
Reference in New Issue