change ip

This commit is contained in:
KP9lKk 2024-12-26 14:50:23 +03:00
parent b8bbd43b28
commit 9107ec00ef
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
<TextBlock Text="Введите логин"/> <TextBlock Text="Введите логин"/>
<TextBox Width="300" x:Name="LoginTextBox" ></TextBox> <TextBox Width="300" x:Name="LoginTextBox" ></TextBox>
<TextBlock Text="Введите пароль"/> <TextBlock Text="Введите пароль"/>
<TextBox Width="300" PasswordChar="*" x:Name="PasswordTextBox" ></TextBox> <TextBox Width="300" x:Name="PasswordTextBox" ></TextBox>
<StackPanel Spacing="5" Orientation="Horizontal"> <StackPanel Spacing="5" Orientation="Horizontal">
<Button x:Name="RegisterClick" Click="RegisterClick_OnClick" Content="Зарегистрироваться"/> <Button x:Name="RegisterClick" Click="RegisterClick_OnClick" Content="Зарегистрироваться"/>
<Button x:Name="LoginClick" Click="LoginClick_OnClick" Content="Войти"/> <Button x:Name="LoginClick" Click="LoginClick_OnClick" Content="Войти"/>

View File

@ -19,7 +19,7 @@ public partial class KidsAppDbContext : DbContext
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see https://go.microsoft.com/fwlink/?LinkId=723263. #warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see https://go.microsoft.com/fwlink/?LinkId=723263.
=> optionsBuilder.UseNpgsql("Host=localhost;Password=123;Database=kids_app_db;Port=5432;Username=postgres"); => optionsBuilder.UseNpgsql("Host=192.168.1.183;Password=123;Database=kids_app_db;Port=5432;Username=postgres");
protected override void OnModelCreating(ModelBuilder modelBuilder) protected override void OnModelCreating(ModelBuilder modelBuilder)
{ {