From 46a4e4b09d183fa4af980098d813a409e588a53a Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Wed, 1 Feb 2023 22:17:22 -0500 Subject: [PATCH] Remove test code - Add announcement to link for v3 --- announcements/v3-released.md | 29 +++++++++++++++++++++++++++ src/JobsJobsJobs/Citizens/Handlers.fs | 8 +++----- src/JobsJobsJobs/Common/Email.fs | 4 ++-- 3 files changed, 34 insertions(+), 7 deletions(-) create mode 100644 announcements/v3-released.md diff --git a/announcements/v3-released.md b/announcements/v3-released.md new file mode 100644 index 0000000..2df7be6 --- /dev/null +++ b/announcements/v3-released.md @@ -0,0 +1,29 @@ +# Jobs, Jobs, Jobs Version 3 + +Version 3 of Jobs, Jobs, Jobs is now available! This major release covers: + +- Separating accounts from their Mastodon dependence +- Supporting chronological employment history in profiles +- Allowing profiles to be shared publicly +- Printing employment profiles +- Simplifying the infrastructure on which it runs + +## Come One, Come All, Human Resources! + +Previous versions utilized Mastodon and its API to authorize users with No Agenda-affiliated instances. This ended up being both too restrictive and unreliable. Version 3 handles user accounts itself, so registration is not tied to another service. + +## Migrating Your Information from v2 + +The content from v2 is available in v3, but will not be visible until it is associated with a v3-created account. If you had content in v2, you should have received a message from @danieljsummers on No Agenda Social with instructions. _(NOTE: ITM, Slaves! and Liberty Woof have closed, so these people could not be reached directly.)_ The process is: + +- [Create an account](https://noagendacareers.com/citizen/register) +- Verify that account +- Reply to the private message on Mastodon with the information requested + +v2 data will be removed at some point after June 1st, 2023. + +## How Does It Work? + +Jobs, Jobs, Jobs is a job site that supports both employment profiles and job listings, allowing its users to either look for or recruit qualified people from the No Agenda tribe. The best way to get started would be to [look over the help files](https://noagendacareers.com/how-it-works). Then, register for an account, copy/paste your résumé there, or take a bit more time and fill out a full employment profile. If you are a person who hires or recruits, post your open positions. + +In short - **use it**; a site like this only works if it provides value, and it has no value without your participation. diff --git a/src/JobsJobsJobs/Citizens/Handlers.fs b/src/JobsJobsJobs/Citizens/Handlers.fs index 628c16d..f4f2a48 100644 --- a/src/JobsJobsJobs/Citizens/Handlers.fs +++ b/src/JobsJobsJobs/Citizens/Handlers.fs @@ -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 } diff --git a/src/JobsJobsJobs/Common/Email.fs b/src/JobsJobsJobs/Common/Email.fs index d62b31f..b8df062 100644 --- a/src/JobsJobsJobs/Common/Email.fs +++ b/src/JobsJobsJobs/Common/Email.fs @@ -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