diff --git a/src/handlers/pageRouter/createOrg.js b/src/handlers/pageRouter/createOrg.js index ba1b986..adfb5df 100644 --- a/src/handlers/pageRouter/createOrg.js +++ b/src/handlers/pageRouter/createOrg.js @@ -1,10 +1,12 @@ import {prepareForRedirect} from '../../utils/pageRouter/prepareForRedirect'; export const createOrg = async (req, res) => { - const options = req.query; - const {org_name = '', start_page = 'registration'} = options; - - const authUrl = prepareForRedirect(options, 'login', res); + const {org_name = ''} = req.query.options; + const options = { + org_name, + is_create_org: true + }; + const authUrl = prepareForRedirect(options, 'register', res); res.redirect(authUrl); };