X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fnbi.py;h=502207f31de4735443e01cef3d9a49f50ecc6364;hp=67cf58b72c570dbca08fa185313e89f30d0e5bd8;hb=a9a1fc8427db17f47ea7ff782e35d24be4094f95;hpb=ee31f53e40fd2435bf19c394842693ae0eb72a9e diff --git a/osm_nbi/nbi.py b/osm_nbi/nbi.py index 67cf58b..502207f 100644 --- a/osm_nbi/nbi.py +++ b/osm_nbi/nbi.py @@ -953,7 +953,12 @@ class Server(object): self._set_location_header("admin", "v1", "tokens", outdata["_id"]) # for logging self._format_login(token_info) - + # password expiry check + if self.authenticator.check_password_expiry(outdata): + outdata = {"id": outdata["id"], + "message": "change_password", + "user_id": outdata["user_id"] + } # cherrypy.response.cookie["Authorization"] = outdata["id"] # cherrypy.response.cookie["Authorization"]['expires'] = 3600 elif method == "DELETE":