sms-new.js 591 Bytes
const _ = require('lodash');
const RegService = require('../models/reg-service');

class SmsNew {
    smsLoginPage(req, res) {
        _.set(req.session, 'smsLogin.step', 1);

        if (req.session.captchaValidCount == null) { // eslint-disable-line
            req.session.captchaValidCount = 5;
        }

        res.render('sms/sms-login-new', {
            module: 'passport',
            page: 'sms-login-new',
            width750: true,
            localCss: true,
            countrys: RegService.getAreaData(), // 地区信息列表
        });
    }
}

module.exports = SmsNew;