Skip to content

Commit dff6d49

Browse files
committed
cleanup
1 parent f625b91 commit dff6d49

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Sources/LocalAuthentication/Schema/Account.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,15 @@ public class Account: PostgresStORM {
7878
public func isUnique() throws {
7979
// checks for email address already existing
8080
let this = Account()
81+
// let thisUsername = Account()
8182
do {
8283
try this.find(["email":email])
8384
if this.results.cursorData.totalRecords > 0 {
84-
// print("failing unique test")
85+
// print("failing unique test")
8586
throw OAuth2ServerError.invalidEmail
8687
}
8788
} catch {
88-
// print(error)
89+
// print(error)
8990
throw OAuth2ServerError.invalidEmail
9091
}
9192
}
@@ -96,7 +97,7 @@ public class Account: PostgresStORM {
9697
let acc = Account(r.secureToken, u, "", e, ut)
9798
do {
9899
try acc.isUnique()
99-
// print("passed unique test")
100+
// print("passed unique test")
100101
try acc.create()
101102
} catch {
102103
print(error)
@@ -183,3 +184,4 @@ public enum AccountType {
183184
}
184185
}
185186
}
187+

0 commit comments

Comments
 (0)