mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-01 12:03:55 +01:00
Beginning of a new component defined for normal users.
(ie. not for admin purposes)
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
import popen2
|
||||
import os
|
||||
import time
|
||||
from django.template import RequestContext
|
||||
from django.shortcuts import render_to_response
|
||||
|
||||
def exec_pipe(cmd):
|
||||
"""Exécute une commande et récupère la sortie générée
|
||||
@@ -41,3 +43,7 @@ def crypt_password(raw_password):
|
||||
salt = salt[:5]
|
||||
hash = md5.new(salt + raw_password).hexdigest()
|
||||
return "%s$%s$%s" % ("md5", salt, hash)
|
||||
|
||||
def _render(request, tpl, user_context):
|
||||
return render_to_response(tpl, user_context,
|
||||
context_instance=RequestContext(request))
|
||||
|
||||
Reference in New Issue
Block a user