fix: remove lamassu login-related filtering

fix: use logger instead of console
This commit is contained in:
Sérgio Salgado 2021-11-16 00:12:19 +00:00
parent b9114b6a33
commit 2ff9ac5bcd
7 changed files with 11 additions and 46 deletions

View file

@ -76,6 +76,7 @@ const CreateUserModal = ({ state, dispatch }) => {
const [createUser, { error }] = useMutation(CREATE_USER, {
onCompleted: ({ createRegisterToken: token }) => {
const queryParams =
// Pazuz-created register tokens add a field to identify the creator
process.env.REACT_APP_BUILD_TARGET === 'LAMASSU'
? `t=${token.token}`
: `t=${token.token}&id=${base64.encode(usernameField)}`