Z-Wave-Me / zwave-smarthome

Z-Way Smart Home UI
GNU General Public License v3.0
57 stars 38 forks source link

Logout from Smart Home UI #230

Closed christianpaetz closed 7 years ago

christianpaetz commented 7 years ago

Please change the logout button in SHUI.

If (url contains find.zwave.me) then redirect to find.zwave.me/zboxweb else do as usual and destroy local cookie

PoltoS commented 7 years ago

If (url contains find.z-wave.me or findcit....) then destroy the cookie redirect to <domain from above>/zboxweb else do as usual and destroy local cookie

vades commented 7 years ago

Added new key "logout_redirect" into config.js:

'logout_redirect': { 'find.z-wave.me': 'https://find.zwave.me/zboxweb' }

After logout app check if host is in the logout_redirect list. If yes redirect to given url otherwise redirect to SHUI login page

vades commented 7 years ago

Done

zwave-mke commented 7 years ago

closed

PoltoS commented 7 years ago

Please always use find.z-wave.me and Mott find.zwave.me. check other places too. Those are different domains and cookies might remain valid in one site and destroyed on another