About customizing the app…i need to know how delete the pin/password entry in the enroll-token page…i deleted the div in the template but it still there…
Hi,
that part is a directive. you need to remove this
this part:
<div assign-user new-user-object="newUser" realms="realms" enable-set-pin=true></div>
Thanks for answering me, i have already tried that but this is going to remove also the user assign drop down button and i need to keep it on the page. I want to remove only the pin/password input fields
Yeah, i did not read carefully what you said orignially.
If you are running code from the current master branch: I already made the PIN section of that directive optional, so you could disable it by setting this to false:
If you run an official release, you need to edit the directive here:
The corresponding js is here:
But from a first look, you should not need to edit the js since it can handle empty pin inputs anyway.
Ok, i will try this way, but i think it’s going to delete the user assign input as well and i need that, the reason why i was asked to delete is because we don’t assign passwd or pin to the new users so it is just pointless to keep it there but not a big issue if i can’t manage to remove it
It is not necessarily pointless.
There can be complex policies, that can allow a PIN in certain situations.
So you can assign a PIN to a token. But the policy would simply say, that it is not used in some cases.
Sometimes some cases can be all cases, but sometimes not.
Also: Are you enrolling as a user or as an administrator?
If you are enroling as a user, you simple have to remove the right enrollpin for the user and the pin field will be hidden.
I fixed it, thanks a lot