mailru / tarantool-authman

MIT License
52 stars 14 forks source link

Sessions without user_id #2

Closed jaberwoky closed 6 years ago

jaberwoky commented 7 years ago

https://github.com/mailru/tarantool-authman/blob/4d52b5eb63324ab9655d769f36ce034c637c922c/authman/init.lua#L250

Hi,

Please check the following issues:

1) When prolonging expired session, new session is created without USER_ID value. Please check, session_data.user_id parameter being passed to session.create() call - it is always nil.

2) When user is deleted, It would be nice to clean up all users's data. But user's sessions remain untouched. https://github.com/mailru/tarantool-authman/blob/master/authman/init.lua#L135

Thanks.

jaberwoky commented 6 years ago

bd2969761594d42c683b975eee36cdf004da895f