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

LIvechat user activation #1963

Closed
andrzejwp opened this issue Jan 18, 2016 · 9 comments
Closed

LIvechat user activation #1963

andrzejwp opened this issue Jan 18, 2016 · 9 comments

Comments

@andrzejwp
Copy link

I'm running the current develop (0.14.0) with livechat turned on. It took me a while to figure this out and I'm not sure it is the expected behavior - when I have user registration turned on, with "manually aprove new users" turned on - my livechat guests receive "User not active" message when they try to write something in chat.
Everything works fine, when I change the registration options to "manually aprove users" turned off.
I understand this is because the livechat users are "standard" rocket.chat users, but I think this is wrong in the first place and should be stated in large typeface in the docs, because it's not obvious.

@marceloschmidt
Copy link
Member

Yes, that makes sense, and is definitely not the expected behavior. We'll work on fixing that! Thanks for reporting it.

@zaubererty
Copy link

If you have activated manual activation you get following error:
"User is not activated"
When you continue and activate the guest user manually then following message appears:
"Token already exists"

To work around this issue just disable the manual user activation (Settings -> Accounts -> Registration)
May be you need to change the registration behavior as well.

Running current Dev

@jots
Copy link

jots commented Mar 18, 2016

I ran into this problem. I turned off "manually approve users" but I still get "Token already exists" after restarting the server even. Not sure how to get rid of the token.

@matrunchyk
Copy link

Same issue for me. How to workaround that?
Version 0.24.0

@ghost
Copy link

ghost commented May 24, 2016

Same here,
I turned off "manually approve users" but I still get "Token already exists".

@jmls
Copy link

jmls commented Jun 10, 2016

yup - just hit this as well. I was hoping that livechat would enable me to allow visitors to the website to open a "support" chat - there are 2 things stopping me from doing that

#1 having to have a user defined (what if I get 10000 support calls ? ;) )
#2 having the agents real name shown on the chat window - I would expect that an administrator could have an option to set up an alias for the agent when adding them, so that "Mark" or "Steve" or "Julie" would be shown instead of the real agent name

@unixfox
Copy link

unixfox commented Jun 18, 2016

Is it planned to be fixed ?

@9joshua
Copy link

9joshua commented Jul 9, 2016

I get this error only if I close a chat and then try to reopen another with a different email address using the same browser.
V 0.35.0

sampaiodiego added a commit that referenced this issue Jul 11, 2016
- Bypass user registration validations for livechat users - Closes
  #2276, #1963

- Set livechat count and order to zero when empty

- Pick a livechat departament if none select and there is more than one

- Fix livechat warning hide message

- Add autolinker to livechat
@hardway
Copy link

hardway commented Sep 27, 2016

A simple patch:

diff -r 2d0e5fa5bf4a packages/rocket_livechat/app/client/lib/_visitor.coffee
--- a/packages/rocket_livechat/app/client/lib/_visitor.coffee    Tue Sep 27 07:39:16 2016 +0000
+++ b/packages/rocket_livechat/app/client/lib/_visitor.coffee    Tue Sep 27 14:10:24 2016 +0000
@@ -6,6 +6,9 @@
        roomToSubscribe = new ReactiveVar null

        register = ->
+               if not localStorage.getItem 'Meteor.userId'
+                       localStorage.clear()
+
                if not localStorage.getItem 'visitorToken'
                        localStorage.setItem 'visitorToken', Random.id()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests