stephenmcd / gnotty

IRC web client and bot framework
http://gnotty.jupo.org
BSD 2-Clause "Simplified" License
162 stars 27 forks source link

Automatically login as request.user #16

Open chrisfranklin opened 11 years ago

chrisfranklin commented 11 years ago

Hey Stephen,

I have had a little look and I can't seem to find a good way to automatically log the user into IRC with their nickname set to their username. How would you go about this? Sorry to bother you with it I was just reluctant to hack it if there is a decent way. Thanks a lot.

All the best,

Chris

stephenmcd commented 11 years ago

No prob. There's a cheap way that works right now - you can simply append "?nickname=foo" to the URL for the web interface and it'll log into IRC using the username given. You'd need to wire that up somehow to the logged in user's username which shouldnt' be too hard.

chrisfranklin commented 11 years ago

Cheers mate, I'll take a proper look at doing it securely if it is possible when I have more time but that's perfect for now!