Skip to content

Commit 205d6ac

Browse files
committed
configure - deprecated code method replaced.
1 parent ca3ff4e commit 205d6ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/StudentAppBackend/Configure/configure.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public func configure(_ app: Application) throws {
1313
username: "root",
1414
password: "",
1515
database: "student_app_test_db",
16-
tlsConfiguration: .forClient(certificateVerification: .none)
16+
tlsConfiguration: .makeClientConfiguration()
1717
), as: .mysql)
1818
// JWT setup
1919
app.jwt.signers.use(.hs256(key: "your-secret-key".data(using: .utf8)!))
@@ -28,7 +28,7 @@ public func configure(_ app: Application) throws {
2828
username: Environment.get("DB_USER") ?? "root",
2929
password: Environment.get("DB_PASSWORD") ?? "password",
3030
database: Environment.get("DB_NAME") ?? "student_db",
31-
tlsConfiguration: .forClient(certificateVerification: .none)
31+
tlsConfiguration: .makeClientConfiguration()
3232
), as: .mysql)
3333
// JWT setup
3434
app.jwt.signers.use(.hs256(key: "your-secret-key".data(using: .utf8)!))

0 commit comments

Comments
 (0)