Skip to content

Commit 4279004

Browse files
committed
make public
1 parent e02e79a commit 4279004

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Sources/VaporRecaptcha/Captcha.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public struct Captcha: Service {
1313
private let client: Client
1414
private let endpoint = "https://www.google.com/recaptcha/api/siteverify"
1515

16-
init(config: CaptchaConfig, client: Client) {
16+
public init(config: CaptchaConfig, client: Client) {
1717
self.config = config
1818
self.client = client
1919
}

Sources/VaporRecaptcha/CaptchaConfig.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ import Foundation
99

1010
public struct CaptchaConfig {
1111
let secretKey: String
12+
13+
public init(secretKey: String) {
14+
self.secretKey = secretKey
15+
}
1216
}

Sources/VaporRecaptcha/CaptchaProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public struct CaptchaProvider: Provider {
1212

1313
private let config: CaptchaConfig
1414

15-
init(config: CaptchaConfig) {
15+
public init(config: CaptchaConfig) {
1616
self.config = config
1717
}
1818

0 commit comments

Comments
 (0)