https://t.me/RX1948
Server : LiteSpeed
System : Linux srv104790275 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : dewac4139 ( 1077)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /usr/local/CyberCP/userManagment/templates/userManagment/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/CyberCP/userManagment/templates/userManagment/modifyUser.html
{% extends "baseTemplate/index.html" %}
{% load i18n %}
{% block title %}{% trans "Modify User - CyberPanel" %}{% endblock %}
{% block content %}

    {% load static %}
    {% get_current_language as LANGUAGE_CODE %}
    <!-- Current language: {{ LANGUAGE_CODE }} -->

    <div class="container">
        <div id="page-title">
            <h2>{% trans "Modify User" %}</h2>
            <p>{% trans "Modify existing user settings on this page." %}</p>
        </div>

        <div class="panel">
            <div ng-controller="modifyUser" class="panel-body">
                <h3 class="content-box-header">
                    {% trans "Details" %} <img ng-hide="userModificationLoading"
                                               src="{% static 'images/loading.gif' %}">
                </h3>
                <div class="example-box-wrapper">

                    <form action="/" class="form-horizontal bordered-row panel-body">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Select Account" %}</label>
                            <div class="col-sm-6">
                                <select ng-change="fetchUserDetails()" ng-model="accountUsername" class="form-control">
                                    {% for accts in acctNames %}
                                        <option>{{ accts }}</option>
                                    {% endfor %}
                                </select>
                            </div>
                        </div>


                        <div ng-hide="acctDetailsFetched" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "First Name" %}</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" ng-model="firstName" required>
                            </div>
                        </div>

                        <div ng-hide="acctDetailsFetched" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Last Name" %}</label>
                            <div class="col-sm-6">
                                <input type="text" class="form-control" ng-model="lastName" required>
                            </div>
                        </div>


                        <div ng-hide="acctDetailsFetched" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Email" %}</label>
                            <div class="col-sm-6">
                                <input type="email" class="form-control" ng-model="email" required>
                            </div>
                        </div>


                        <div ng-hide="acctDetailsFetched" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Password" %}</label>
                            <div class="col-sm-6">
                                <input type="password" class="form-control" ng-model="password" required>
                            </div>
                            <div class="col-sm-3">
                                <button type="button" ng-click="generatePassword()"
                                        class="btn btn-primary">{% trans "Generate" %}</button>
                            </div>
                        </div>

                        <div ng-hide="generatedPasswordView" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Generated Password" %}</label>
                            <div class="col-sm-6">
                                <input type="text" name="email" class="form-control" ng-model="password" required>
                            </div>
                            <div class="col-sm-3">
                                <button type="button" ng-click="usePassword()"
                                        class="btn btn-primary">{% trans "Use" %}</button>
                            </div>
                        </div>

                        <div ng-hide="acctDetailsFetched" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Additional Features" %}</label>
                            <label class="col-sm-3 control-label"></label>
                            <div class="col-sm-9">
                                <div class="checkbox">
                                    <label>
                                        <input ng-change="decideQRShow()" ng-model="twofa" type="checkbox" value="">
                                        2FA
                                    </label>
                                </div>
                            </div>
                            <label ng-hide="qrHidden" class="col-sm-3 control-label"></label>
                            <div ng-hide="qrHidden" class="col-sm-9">
                                <canvas id="qr"></canvas>
                            </div>
                        </div>


                        <div ng-hide="acctDetailsFetched" class="form-group">
                            <label class="col-sm-3 control-label">{% trans "Security Level" %}</label>
                            <div class="col-sm-6">
                                <select ng-init="securityLevels={{ securityLevels }}"
                                        ng-model="securityLevel" ng-options="s for s in securityLevels track by s"
                                        class="form-control">
                                </select>
                            </div>
                            <div class="col-sm-3">
                                Currently: {$ currentSecurityLevel $}
                            </div>
                        </div>


                        <div ng-hide="acctDetailsFetched" class="form-group">
                            <label class="col-sm-3 control-label"></label>
                            <div class="col-sm-4">
                                <button type="button" ng-click="modifyUser()"
                                        class="btn btn-primary btn-lg">{% trans "Modify User" %}</button>

                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-3 control-label"></label>
                            <div class="col-sm-6">
                                <div ng-hide="userModified" class="alert alert-success">
                                    <p>{% trans "Account with username:" %} <strong>{$ userName
                                        $}</strong>{% trans " is successfully modified." %}</p>
                                </div>

                                <div ng-hide="canotModifyUser" class="alert alert-danger">
                                    <p>{% trans "Cannot modify user. Error message:" %} {$ errorMessage $}</p>
                                </div>

                                <div ng-hide="couldNotConnect" class="alert alert-danger">
                                    <p>{% trans "Could not connect to server. Please refresh this page." %}</p>
                                </div>


                                <div ng-hide="canotFetchDetails" class="alert alert-danger">
                                    <p>{% trans "Cannot fetch details. Error message:" %} {$ errorMessage $}</p>
                                </div>

                                <div ng-hide="detailsFetched" class="alert alert-success">
                                    <p>{% trans "Details fetched." %}</p>
                                </div>


                            </div>


                        </div>


                    </form>


                </div>
            </div>
        </div>
    </div>

{% endblock %}

https://t.me/RX1948 - 2025