|
|
@ -933,8 +933,8 @@ def edit_user(user_id):
|
|
|
|
@login_required
|
|
|
|
@login_required
|
|
|
|
@admin_required
|
|
|
|
@admin_required
|
|
|
|
def reset_user_password(user_id):
|
|
|
|
def reset_user_password(user_id):
|
|
|
|
if not config.config_public_reg:
|
|
|
|
#if not config.config_public_reg:
|
|
|
|
abort(404)
|
|
|
|
# abort(404)
|
|
|
|
if current_user is not None and current_user.is_authenticated:
|
|
|
|
if current_user is not None and current_user.is_authenticated:
|
|
|
|
ret, message = reset_password(user_id)
|
|
|
|
ret, message = reset_password(user_id)
|
|
|
|
if ret == 1:
|
|
|
|
if ret == 1:
|
|
|
|