[Kimchi-devel] [PATCH] [Wok] Wok BugFix - session message appearing on login
Ramon Medeiros
ramonn at linux.vnet.ibm.com
Tue Aug 2 20:53:40 UTC 2016
Reviewed-By: Ramon Medeiros <ramonn at br.ibm.com>
On 08/02/2016 05:22 PM, peterpnns at gmail.com wrote:
> From: peterpennings <peterpnns at gmail.com>
>
> Signed-off-by: peterpennings <peterpnns at gmail.com>
> ---
> ui/js/src/wok.api.js | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/ui/js/src/wok.api.js b/ui/js/src/wok.api.js
> index e2829ab..2c3206c 100644
> --- a/ui/js/src/wok.api.js
> +++ b/ui/js/src/wok.api.js
> @@ -43,6 +43,9 @@ var wok = {
> settings['wok'] = true;
> settings['complete'] = function(req) {
> wok.session.remainingSessionTime = req.getResponseHeader('Session-Expires-On');
> + if (wok.session.remainingSessionTime == null) {
> + wok.session.remainingSessionTime = 30;
> + }
> wok.session.remainingSessionTime = (parseInt(wok.session.remainingSessionTime, 10) * 1000);
> if (!wok.session.flagInTimer) {
> wok.session.refreshExpiringCounter();
--
Ramon Nunes Medeiros
Kimchi Developer
Linux Technology Center Brazil
IBM Systems & Technology Group
Phone : +55 19 2132 7878
ramonn at br.ibm.com
More information about the Kimchi-devel
mailing list