[pve-devel] [PATCH manager 2/3] add u2f-api.js

Thomas Lamprecht t.lamprecht at proxmox.com
Tue May 29 10:02:27 CEST 2018


On 5/24/18 3:28 PM, Wolfgang Bumiller wrote:
> Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
> ---
>  www/Makefile   |   3 +-
>  www/u2f-api.js | 748 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 750 insertions(+), 1 deletion(-)
>  create mode 100644 www/u2f-api.js
> 
> diff --git a/www/Makefile b/www/Makefile
> index 30becf3a..eaee5ea5 100644
> --- a/www/Makefile
> +++ b/www/Makefile
> @@ -10,4 +10,5 @@ all: ${SUBDIRS} index.html.tpl
>  install:
>  	set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
>  	install -m 0644 index.html.tpl ${WWWBASEDIR}
> -
> +	install -d ${WWWJSDIR}
> +	install -m 0644 u2f-api.js ${WWWJSDIR}
> diff --git a/www/u2f-api.js b/www/u2f-api.js
> new file mode 100644
> index 00000000..9244d14e
> --- /dev/null
> +++ b/www/u2f-api.js
             ^^^^^^^^^^
You install the u2f js file as u2f-api.js but in your next patch you refer
to it as u2f-lib.js :

> +    <script type="text/javascript" src="/pve2/js/u2f-lib.js"></script>
                                                     ^^^^^^^^^^
One of both should be adapted :)




More information about the pve-devel mailing list