This repository has been archived by the owner on Apr 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from nodes-vapor/bugfix/adminpanel-config-init
Update AdminPanelConfig.swift
- Loading branch information
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,11 @@ public struct AdminPanelConfig<U: AdminPanelUserType>: Service { | |
public let fromEmail: String | ||
public let subject: String | ||
|
||
public init(fromEmail: String, subject: String) { | ||
self.fromEmail = fromEmail | ||
self.subject = subject | ||
} | ||
|
||
public static var `default`: ResetPasswordEmail { | ||
return .init( | ||
fromEmail: "[email protected]", | ||
|
@@ -21,6 +26,11 @@ public struct AdminPanelConfig<U: AdminPanelUserType>: Service { | |
public let fromEmail: String | ||
public let subject: String | ||
|
||
public init(fromEmail: String, subject: String) { | ||
self.fromEmail = fromEmail | ||
self.subject = subject | ||
} | ||
|
||
public static var `default`: SpecifyPasswordEmail { | ||
return .init( | ||
fromEmail: "[email protected]", | ||
|