Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two Factor Authentication qr code not showing #47

Open
robertshort5511 opened this issue Aug 17, 2022 · 4 comments
Open

Two Factor Authentication qr code not showing #47

robertshort5511 opened this issue Aug 17, 2022 · 4 comments
Labels
good first issue Good for newcomers

Comments

@robertshort5511
Copy link

After installing the two factor authentication module it works however the qr code does not show.
It only allows me to type in a key into Microsoft authenticator versus being able to scan a qr code.
Screenshot 2022-08-17 153843

@ns8482e
Copy link
Contributor

ns8482e commented Aug 17, 2022

Do you see any error on network tab or in console related to js file in developer tools?

@robertshort5511
Copy link
Author

no

@ns8482e
Copy link
Contributor

ns8482e commented Aug 19, 2022

Looks like script is not being loaded in custom theme. As the module uses resource management., you need to define rendering the resources in your layout - See https://docs.orchardcore.net/en/latest/docs/reference/modules/Resources/#rendering

Add following in your layout for rending registered scripts ( qrcode is placed at Foot)

<body>
    ...
    <resources type="FootScript" />
</body>

And add following to include style resources

<head>
    ...
    <resources type="Meta" />
    <resources type="HeadLink" />
    <resources type="HeadScript" />
    <resources type="Stylesheet" />
</head>

@ns8482e ns8482e added the good first issue Good for newcomers label Aug 19, 2022
@ns8482e
Copy link
Contributor

ns8482e commented Aug 26, 2022

@robertshort5511 adding resource tag in your theme layout help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants