added email bracket in new entry and fixed creating the second database

This commit is contained in:
Taarly 2025-06-24 08:44:45 +02:00
parent 6e4e17f428
commit af780414ac
2 changed files with 8 additions and 2 deletions

View File

@ -27,14 +27,14 @@ public partial class SQLite
loginemail STRING NOT NULL loginemail STRING NOT NULL
); );
"; ";
//command.ExecuteNonQuery(); command.ExecuteNonQuery();
command.CommandText = command.CommandText =
@" @"
CREATE TABLE IF NOT EXISTS SAVED_LOGINS ( CREATE TABLE IF NOT EXISTS SAVED_LOGINS (
name STRING PRIMARY KEY NOT NULL, name STRING PRIMARY KEY NOT NULL,
pass STRING NOT NULL, pass STRING NOT NULL,
mail_username STRING NOT NULL, mail_username STRING NOT NULL,
note STRING note STRING,
owner STRING NOT NULL, owner STRING NOT NULL,
FOREIGN KEY(owner) REFERENCES LOGINS(loginname) FOREIGN KEY(owner) REFERENCES LOGINS(loginname)

View File

@ -19,6 +19,12 @@
HorizontalAlignment="Left" HorizontalAlignment="Left"
Text="Username:" /> Text="Username:" />
<TextBox TextWrapping="Wrap" Watermark="Username" /> <TextBox TextWrapping="Wrap" Watermark="Username" />
<TextBlock
FontSize="20"
HorizontalAlignment="Left"
Margin="23"
Text="Email:" />
<TextBox TextWrapping="Wrap" Watermark="E-Mail" />
<TextBlock <TextBlock
FontSize="20" FontSize="20"
HorizontalAlignment="Left" HorizontalAlignment="Left"