Skip to content

Commit

Permalink
make public
Browse files Browse the repository at this point in the history
  • Loading branch information
jdmcd committed May 8, 2018
1 parent e02e79a commit 4279004
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/VaporRecaptcha/Captcha.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public struct Captcha: Service {
private let client: Client
private let endpoint = "https://www.google.com/recaptcha/api/siteverify"

init(config: CaptchaConfig, client: Client) {
public init(config: CaptchaConfig, client: Client) {
self.config = config
self.client = client
}
Expand Down
4 changes: 4 additions & 0 deletions Sources/VaporRecaptcha/CaptchaConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ import Foundation

public struct CaptchaConfig {
let secretKey: String

public init(secretKey: String) {
self.secretKey = secretKey
}
}
2 changes: 1 addition & 1 deletion Sources/VaporRecaptcha/CaptchaProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public struct CaptchaProvider: Provider {

private let config: CaptchaConfig

init(config: CaptchaConfig) {
public init(config: CaptchaConfig) {
self.config = config
}

Expand Down

0 comments on commit 4279004

Please sign in to comment.