Skip to content

Commit

Permalink
Expose reset password required in the user initialiser
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim committed Apr 17, 2020
1 parent 035bbae commit ee9d336
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/SteamPress/Models/BlogUser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ public final class BlogUser: Codable {
public var name: String
public var username: String
public var password: String
public var resetPasswordRequired: Bool = false
public var resetPasswordRequired: Bool
public var profilePicture: String?
public var twitterHandle: String?
public var biography: String?
public var tagline: String?

public init(userID: Int? = nil, name: String, username: String, password: String, profilePicture: String?, twitterHandle: String?, biography: String?, tagline: String?) {
public init(userID: Int? = nil, name: String, username: String, password: String, resetPasswordRequired: Bool = false, profilePicture: String?, twitterHandle: String?, biography: String?, tagline: String?) {
self.userID = userID
self.name = name
self.username = username.lowercased()
self.password = password
self.resetPasswordRequired = resetPasswordRequired
self.profilePicture = profilePicture
self.twitterHandle = twitterHandle
self.biography = biography
Expand Down

0 comments on commit ee9d336

Please sign in to comment.