# HG changeset patch # User bsw # Date 1533138380 -7200 # Node ID 186a172c8b9ed85a20befb880a8154fb4e3eaeed # Parent 4c6165d4398150a4cb1d04bca3e1da26d18ce335 Allow forced manual verification w/o sms check diff -r 4c6165d43981 -r 186a172c8b9e app/main/registration/_action/register.lua --- a/app/main/registration/_action/register.lua Wed Aug 01 17:32:19 2018 +0200 +++ b/app/main/registration/_action/register.lua Wed Aug 01 17:46:20 2018 +0200 @@ -232,6 +232,10 @@ table.insert(manual_check_reasons, "User requested manual verification (during step 1)") end +if not config.self_registration.sms_id then + table.insert(manual_check_reasons, "User requested manual verification (during step 1)") +end + local existing_verifications = Verification:new_selector() :add_where{ "request_data->>'mobile_phone' = ?", mobile_phone } :add_where("comment ilike '%SMS code%'")