You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2022. It is now read-only.
connection.Execute($"INSERT INTO Account(Email, Password, VerificationCode) VALUES (@Email, @Password, {verificationCode})",account);// Better is to use a StoredProcedure later on
57
+
}
58
+
}
59
+
60
+
/// <summary>
61
+
/// Checks if the given verification code matches the verification code in the database for the account. Also sets the verified column to true (1).
62
+
/// </summary>
63
+
/// <param name="verificationCode">The verification code that needs to be checked with the database.</param>
64
+
/// <param name="account">The account the verification code needs to be checked for.</param>
65
+
/// <returns>True if the verification code matches, false if not.</returns>
// Forward a local port to the database server and port, using the SSH server
71
+
//ForwardedPortLocal forwardedPort = new ForwardedPortLocal("127.0.0.1", databaseServer, (uint)databasePort); // Uses a random port
72
+
ForwardedPortLocalforwardedPort=newForwardedPortLocal("127.0.0.1",(uint)databasePort,databaseServer,(uint)databasePort);// Makes port same as database port
0 commit comments