Hi @thinktwice,
There are two cookies that need to be set to login without a password and username. Here’s an example of how to set them:
setcookie('MMUSERID', '<user id from database>', time()+606024*30, ‘/’, ‘.yourdomain.com’, true, true);
setcookie('MMAUTHTOKEN', '<Authentication Token Value>', time()+606024*30, ‘/’, ‘.yourdomain.com’, true, true);
Replace <user id from database>
and <Authentication Token Value>
with their respective values for that user. You can get both of these values with a database query, or by using the authentication instructions for the Mattermost API..
Hope this helps,