 // 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),

import Sugar
import Validation

internal struct PasswordResetForm {
    fileprivate let emailField: FormField<String>
    fileprivate let passwordField: FormField<String>
    fileprivate let passwordRepeatField: FormField<String>

// MARK: PasswordResetInfoType

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

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