Remove test code
- Add announcement to link for v3
This commit is contained in:
@@ -61,11 +61,9 @@ module private Auth =
|
||||
|
||||
/// Require an administrative user (used for legacy migration endpoints)
|
||||
let requireAdmin : HttpHandler = requireUser >=> fun next ctx -> task {
|
||||
// let adminUser = (config ctx)["AdminUser"]
|
||||
// if adminUser = defaultArg (tryUser ctx) "" then return! next ctx
|
||||
// else return! Error.notAuthorized next ctx
|
||||
// TODO: uncomment the above, remove the line below
|
||||
return! next ctx
|
||||
let adminUser = (config ctx)["AdminUser"]
|
||||
if adminUser = defaultArg (tryUser ctx) "" then return! next ctx
|
||||
else return! Error.notAuthorized next ctx
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ module private Helpers =
|
||||
/// Create a message with to, from, and subject completed
|
||||
let createMessage citizen subject =
|
||||
let msg = new MimeMessage ()
|
||||
msg.From.Add (MailboxAddress ("Jobs, Jobs, Jobs", (* "daniel@bitbadger.solutions" *) "summersd@localhost"))
|
||||
msg.To.Add (MailboxAddress (Citizen.name citizen, (* citizen.Email *) "summersd@localhost"))
|
||||
msg.From.Add (MailboxAddress ("Jobs, Jobs, Jobs", "daniel@bitbadger.solutions"))
|
||||
msg.To.Add (MailboxAddress (Citizen.name citizen, citizen.Email))
|
||||
msg.Subject <- subject
|
||||
msg
|
||||
|
||||
|
||||
Reference in New Issue
Block a user