Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #107 from nodes-vapor/feature/publicPasswordResetForm
Browse files Browse the repository at this point in the history
access level of PasswordResetForm is public now
  • Loading branch information
martinlasek authored Feb 8, 2018
2 parents df89c10 + 65edb00 commit 7d4d865
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/JWTKeychain/Models/User/PasswordResetForm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import JSON
import Sugar
import Validation

internal struct PasswordResetForm {
public struct PasswordResetForm {
fileprivate let emailField: FormField<String>
fileprivate let passwordField: FormField<String>
fileprivate let passwordRepeatField: FormField<String>
Expand Down Expand Up @@ -49,15 +49,15 @@ internal struct PasswordResetForm {
// MARK: Form

extension PasswordResetForm: Form {
var fields: [FieldType] {
public var fields: [FieldType] {
return [emailField, passwordField, passwordRepeatField]
}
}

// MARK: JSONInitializable

extension PasswordResetForm: JSONInitializable {
internal init(json: JSON) throws {
public init(json: JSON) throws {
try self.init(
email: json.get(User.Keys.email),
password: json.get(User.Keys.password),
Expand All @@ -69,11 +69,11 @@ extension PasswordResetForm: JSONInitializable {
// MARK: PasswordResetInfoType

extension PasswordResetForm: PasswordResetInfoType {
internal var email: String? {
public var email: String? {
return emailField.value
}

internal var password: String? {
public var password: String? {
return passwordField.value
}
}

0 comments on commit 7d4d865

Please sign in to comment.