| 
						
						
							
								
							
						
						
					 | 
					@ -149,6 +149,7 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                            <!-- Change Password --> | 
					 | 
					 | 
					                            <!-- Change Password --> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                            <template v-if="! settings.disableAuth"> | 
					 | 
					 | 
					                            <template v-if="! settings.disableAuth"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                                <h2 class="mt-5 mb-2">{{ $t("Change Password") }}</h2> | 
					 | 
					 | 
					                                <h2 class="mt-5 mb-2">{{ $t("Change Password") }}</h2> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                                <p>{{ $t("Current User") }}: <strong>{{ this.username }}</strong></p> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                                <form class="mb-3" @submit.prevent="savePassword"> | 
					 | 
					 | 
					                                <form class="mb-3" @submit.prevent="savePassword"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                                    <div class="mb-3"> | 
					 | 
					 | 
					                                    <div class="mb-3"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                                        <label for="current-password" class="form-label">{{ $t("Current Password") }}</label> | 
					 | 
					 | 
					                                        <label for="current-password" class="form-label">{{ $t("Current Password") }}</label> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -415,6 +416,7 @@ import utc from "dayjs/plugin/utc"; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import timezone from "dayjs/plugin/timezone"; | 
					 | 
					 | 
					import timezone from "dayjs/plugin/timezone"; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import NotificationDialog from "../components/NotificationDialog.vue"; | 
					 | 
					 | 
					import NotificationDialog from "../components/NotificationDialog.vue"; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import TwoFADialog from "../components/TwoFADialog.vue"; | 
					 | 
					 | 
					import TwoFADialog from "../components/TwoFADialog.vue"; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import jwt_decode from "jwt-decode"; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					dayjs.extend(utc); | 
					 | 
					 | 
					dayjs.extend(utc); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					dayjs.extend(timezone); | 
					 | 
					 | 
					dayjs.extend(timezone); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -471,6 +473,7 @@ export default { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    }, | 
					 | 
					 | 
					    }, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    mounted() { | 
					 | 
					 | 
					    mounted() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        this.loadUsername(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        this.loadSettings(); | 
					 | 
					 | 
					        this.loadSettings(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        this.loadDatabaseSize(); | 
					 | 
					 | 
					        this.loadDatabaseSize(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    }, | 
					 | 
					 | 
					    }, | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -497,6 +500,12 @@ export default { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        }, | 
					 | 
					 | 
					        }, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        loadUsername() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            const jwtToken = this.$root.storage().token; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            const jwtPayload = jwt_decode(jwtToken); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            this.username = jwtPayload.username; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        loadSettings() { | 
					 | 
					 | 
					        loadSettings() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            this.$root.getSocket().emit("getSettings", (res) => { | 
					 | 
					 | 
					            this.$root.getSocket().emit("getSettings", (res) => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                this.settings = res.data; | 
					 | 
					 | 
					                this.settings = res.data; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |