console_conf/controllers/identity: store login details in project state directory
Since we set a project name centrally, it implies a specific path to the state directory. Instead of hardcoding the same value directly again in the controller code, use the application level state directory. Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
This commit is contained in:
parent
f3043cde88
commit
592887b540
|
@ -183,8 +183,7 @@ class IdentityController(TuiController):
|
||||||
"realname": email,
|
"realname": email,
|
||||||
"username": data["username"],
|
"username": data["username"],
|
||||||
}
|
}
|
||||||
os.makedirs("/run/console-conf", exist_ok=True)
|
login_details_path = self.app.state_path("login-details.txt")
|
||||||
login_details_path = "/run/console-conf/login-details.txt"
|
|
||||||
self.model.add_user(result)
|
self.model.add_user(result)
|
||||||
ips = []
|
ips = []
|
||||||
net_model = self.app.base_model.network
|
net_model = self.app.base_model.network
|
||||||
|
|
Loading…
Reference in New Issue