1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 06:43:35 +00:00

Feature/use hcaptcha if bot (#1089)

* Add captcha to login page

* pull out shared method

* Update parse parameter logic

* Load captcha

* responsive iframe height
* correct i18n
* site key provided by server

* Fix locale parsing

* Add optional success callbackUri

* Make captcha connector responsive

* Handle parameter versions in webauthn

* Move variables to top of script

* Add captcha to registration

* Move captcha above `<hr>` div to be part of input form

* Add styled mobile captcha connector

* Linter Fixes

* Remove duplicate import

* Use listener to load captcha

* PR review
This commit is contained in:
Matt Gibson
2021-07-23 14:30:04 -05:00
committed by GitHub
parent 2b5f61cadd
commit a73cbbb672
14 changed files with 247 additions and 66 deletions

View File

@@ -112,6 +112,11 @@ const plugins = [
filename: 'captcha-connector.html',
chunks: ['connectors/captcha'],
}),
new HtmlWebpackPlugin({
template: './src/connectors/captcha-mobile.html',
filename: 'captcha-mobile-connector.html',
chunks: ['connectors/captcha'],
}),
new CopyWebpackPlugin({
patterns:[
{ from: './src/.nojekyll' },