Examples of verifyTotp()


Examples of com.psddev.cms.db.ToolUser.verifyTotp()

        ToolUser user = page.getUser();
        boolean verifyError = false;

        if (page.isFormPost() &&
                page.param(String.class, "action-verify") != null) {
            if (!user.verifyTotp(page.param(int.class, "totpCode"))) {
                verifyError = true;

            } else {
                user.setTfaEnabled(!user.isTfaEnabled());
                user.save();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.