* Remove obsolete SiteConfig values * Remove DUS * fixup! Remove obsolete SiteConfig values * fixup! Remove obsolete SiteConfig values * Add DUS for removing SiteConfig values * Fix specs * Fix specs * Clean up more DUS * Update DUS * Fix remaining spec * Remove leftover spec * Fix more specs * Fix spec * Remove deprecated spec * Rearrange specs * Temporarily disable specs
26 lines
827 B
Ruby
26 lines
827 B
Ruby
module Authentication
|
|
module Errors
|
|
PREVIOUSLY_SUSPENDED_MESSAGE = "It appears that your previous %<community_name>s " \
|
|
"account was suspended. As such, we've taken measures to prevent you from " \
|
|
"creating a new account with %<community_name>s and its community. If you " \
|
|
"think that there has been a mistake, please email us at %<community_email>s, " \
|
|
"and we will take another look.".freeze
|
|
|
|
class Error < StandardError
|
|
end
|
|
|
|
class ProviderNotFound < Error
|
|
end
|
|
|
|
class ProviderNotEnabled < Error
|
|
end
|
|
|
|
class PreviouslySuspended < Error
|
|
def message
|
|
format(PREVIOUSLY_SUSPENDED_MESSAGE,
|
|
community_name: Settings::Community.community_name,
|
|
community_email: SiteConfig.email_addresses[:contact])
|
|
end
|
|
end
|
|
end
|
|
end
|