{"id":197331,"date":"2025-12-19T21:22:28","date_gmt":"2025-12-19T13:22:28","guid":{"rendered":"https:\/\/www.hkmu.edu.hk\/sao\/?page_id=197331"},"modified":"2025-12-21T22:36:15","modified_gmt":"2025-12-21T14:36:15","slug":"login","status":"publish","type":"page","link":"https:\/\/www.hkmu.edu.hk\/sao\/login\/","title":{"rendered":"Login"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"197331\" class=\"elementor elementor-197331\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"has_eae_slider wavo-column-gap-default elementor-section elementor-top-section elementor-element elementor-element-fab0c67 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"fab0c67\" data-element_type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"has_eae_slider elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0f6f957\" data-id=\"0f6f957\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-98a463f elementor-widget elementor-widget-shortcode\" data-id=\"98a463f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-shortcode\"><style>\r\n\t#news-login>div:first-child{font-weight:bold;background-color:#004b77;color:#fff;padding:5px 10px;opacity:1;}\r\n\t#news-login>div:last-child{font-weight:bold;background-color:#004b77;color:#fff;padding:5px 10px;opacity:1;}\r\n\t#news-login>div{ background-color:#dcdddd;text-align:left;padding:5px 10px;opacity:1;}\t\r\n<\/style>\r\n<div style=\"flex-grow:1; max-width:600px; margin:0px auto;\">\r\n    <div id=\"news-login\" >\r\n        <div>Login to MyHKMU<\/div>\t\t\r\n        <div style=\"height:180px; display: flex; align-content: space-around; flex-direction: column;\">\t\t\t\r\n            <form name=\"myouhk_form\" ACTION=\"https:\/\/auth.hkmu.edu.hk\/nidp\/idff\/sso?id=7&sid=0&option=credential&sid=0&uiDestination=contentDiv\" target=\"_top\" \r\n                METHOD=\"POST\" ENCTYPE=\"application\/x-www-form-urlencoded\" onSubmit=\"return onSubmit()\">\r\n                <input type=\"hidden\" name=\"option\" value=\"credential\">\r\n                <input type=\"hidden\" name=\"target\" value=\"https:\/\/www.hkmu.edu.hk\/sao\/wp-json\/wp\/v2\/pages\/197331?\">\t\t\t\r\n                <ul style=\"height:80px; display: flex; justify-content: center;\">\r\n                    <div style=\"display:flex; align-items: center; justify-content: flex-start; width:100%\" >\r\n                        <div style=\"width:123px\">Username : <\/div>\r\n                        <div style=\"width:90%\">\r\n                            <input type=\"text\" size=\"20\" name=\"Ecom_User_ID\" id=\"Ecom_User_ID\" value=\"\" class=\"search\" tabindex=\"1\" autocomplete=off style=\"width:100%; margin-left:5px; height:10px; background-color:white;\"\/>\r\n                        <\/div>\t\t\t\t\t\t\r\n                        <div style=\"width:50px\">&nbsp;<\/div>\r\n                    <\/div>\r\n                <\/ul >\r\n                <ul style=\"height:80px;\">\r\n                    <div style=\"display:flex; align-items: center; justify-content: flex-start; width:100%\" >\r\n                        <div style=\"width:123px\">Password : <\/div>\r\n                        <div style=\"width:90%\">\r\n                            <input type=\"password\" size=\"20\" name=\"Ecom_Password\" id=\"Ecom_Password\" class=\"search\" tabindex=\"2\" autocomplete=off style=\"width:100%; margin-left:5px; height:10px; background-color:white;\"\/>\r\n                        <\/div>\r\n                        <label style=\"position: absolute;top:-9999px\" for=\"Submit_login\">Submit<\/label>\t\t\t\t\t\t\r\n                        <div style=\"width:50px\">\r\n                            <button onclick=\"onSubmitClick()\" type=\"submit\" style=\"cursor: pointer; border: 0;  margin-left:5px; background: transparent\" alt=\"Go\" >\r\n                                <img decoding=\"async\" loading=\"lazy\" src=\"\/images\/2014_12\/portal\/login-icon.png\" width=\"22\" height=\"22\" alt=\"submit\" \/>\r\n                            <\/button>\r\n                        <\/div>\t\t\t\t\t\t\r\n                    <\/div>\r\n                <\/ul>\t\t\t\t\r\n            <\/form>\r\n        <\/div>\r\n        <div>\r\n            &nbsp;\r\n        <\/div>\r\n    <\/div>\r\n<\/div>\r\n<script type=\"text\/javascript\">\r\n    var isSubmitByClick = false;\r\n    function onSubmitClick(){\r\n        isSubmitByClick = true;\r\n    }\r\n    function onSubmit(){        \r\n        var usr = jQuery('#news-login [name=Ecom_User_ID]').val();\r\n        var pwd = jQuery('#news-login [name=Ecom_Password]').val();\r\n        var st = getCookie('8ea9b6405ef8d6a1739622d585c5a8f45ebdbd58');\r\n        if( isSubmitByClick ){\r\n            if( (''+usr).trim() == '' ){\r\n                jQuery('#news-login [name=Ecom_User_ID]').fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);\r\n                return false;\r\n            }else if( (''+pwd).trim() == '' ){\r\n                jQuery('#news-login [name=Ecom_Password]').fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);\r\n                return false;\r\n            }\r\n            st = (\/^s\\d{7,}$\/).test(usr)?'Y':'N';\r\n        }        \r\n        setCookie('8ea9b6405ef8d6a1739622d585c5a8f45ebdbd58',st,1);        \r\n        jQuery('#news-login [name=target]').val( 'https:\/\/www.hkmu.edu.hk\/sao\/wp-json\/wp\/v2\/pages\/197331?' +'&st='+ st );\r\n        return true;\r\n    }\r\n    function setCookie(n,v,h){\r\n        let exp = '';\r\n        if( h ){\r\n            let dt = new Date();\r\n            dt.setTime(dt.getTime()+(h*60*60*1000));\r\n            exp = \"; expires=\"+dt.toUTCString();\r\n        }\r\n        document.cookie = n+\"=\"+(v||'') + exp+\"; path=\/\";\r\n    }\r\n    function getCookie(n){\r\n        let v = `; ${document.cookie}`;\r\n        let pt = v.split(`; ${n}=`);\r\n        if( pt.length === 2 ){ return pt.pop().split(';').shift(); }\r\n        return '';\r\n    }\r\n    function checkPrevLogin(){\r\n        let ck = getCookie('8ea9b6405ef8d6a1739622d585c5a8f45ebdbd58');\r\n        if( ck != '' ){\r\n            jQuery('form[name=\"myouhk_form\"]').get(0).submit();\r\n        }\r\n    }\r\n    jQuery(document).ready(function(){\r\n        window.history.replaceState({}, document.title, 'https:\/\/www.hkmu.edu.hk\/sao\/wp-json\/wp\/v2\/pages\/197331');\r\n        \/\/checkPrevLogin();\r\n    });\r\n<\/script> <\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_expiration-date-status":"","_expiration-date":0,"_expiration-date-type":"","_expiration-date-categories":[],"_expiration-date-options":[]},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.3 (Yoast SEO v21.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Login - Student Affairs Office - Hong Kong Metropolitan University<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hkmu.edu.hk\/sao\/login\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Login\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hkmu.edu.hk\/sao\/login\/\" \/>\n<meta property=\"og:site_name\" content=\"Student Affairs Office - Hong Kong Metropolitan University\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-21T14:36:15+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Login - Student Affairs Office - Hong Kong Metropolitan University","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hkmu.edu.hk\/sao\/login\/","og_locale":"en_US","og_type":"article","og_title":"Login","og_url":"https:\/\/www.hkmu.edu.hk\/sao\/login\/","og_site_name":"Student Affairs Office - Hong Kong Metropolitan University","article_modified_time":"2025-12-21T14:36:15+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hkmu.edu.hk\/sao\/login\/","url":"https:\/\/www.hkmu.edu.hk\/sao\/login\/","name":"Login - Student Affairs Office - Hong Kong Metropolitan University","isPartOf":{"@id":"https:\/\/www.hkmu.edu.hk\/sao\/#website"},"datePublished":"2025-12-19T13:22:28+00:00","dateModified":"2025-12-21T14:36:15+00:00","breadcrumb":{"@id":"https:\/\/www.hkmu.edu.hk\/sao\/login\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hkmu.edu.hk\/sao\/login\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hkmu.edu.hk\/sao\/login\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Student Affairs Office","item":"\/sao\/"},{"@type":"ListItem","position":2,"name":"Login"}]},{"@type":"WebSite","@id":"https:\/\/www.hkmu.edu.hk\/sao\/#website","url":"https:\/\/www.hkmu.edu.hk\/sao\/","name":"Student Affairs Office - Hong Kong Metropolitan University","description":"Student Affairs Office - Hong Kong Metropolitan University","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hkmu.edu.hk\/sao\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.hkmu.edu.hk\/sao\/wp-json\/wp\/v2\/pages\/197331"}],"collection":[{"href":"https:\/\/www.hkmu.edu.hk\/sao\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hkmu.edu.hk\/sao\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hkmu.edu.hk\/sao\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hkmu.edu.hk\/sao\/wp-json\/wp\/v2\/comments?post=197331"}],"version-history":[{"count":22,"href":"https:\/\/www.hkmu.edu.hk\/sao\/wp-json\/wp\/v2\/pages\/197331\/revisions"}],"predecessor-version":[{"id":197398,"href":"https:\/\/www.hkmu.edu.hk\/sao\/wp-json\/wp\/v2\/pages\/197331\/revisions\/197398"}],"wp:attachment":[{"href":"https:\/\/www.hkmu.edu.hk\/sao\/wp-json\/wp\/v2\/media?parent=197331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}