Skip to content

Commit 096009e

Browse files
committed
added getName function
1 parent 43db7fc commit 096009e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Sources/LocalAuthentication/Schema/Account.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ public class Account: PostgresStORM {
202202

203203
}
204204

205+
public func getName() -> String {
206+
let name = "\(detail["firstname"] as? String ?? "") \(detail["lastname"] as? String ?? "")"
207+
return name
208+
}
209+
205210
public enum AccountType {
206211
case provisional, standard, admin, manager, inactive
207212

0 commit comments

Comments
 (0)