Django Book 翻译
菜单>:
TOC
返回
原文:
Either way, ``authenticate`` should check the credentials it gets, and it should return a ``User`` object that matches those credentials, if the credentials are valid. If theyre not valid, it should return ``None`` .
翻译:
每一个方法中, ``authenticate`` 都应该检测它所获取的证书,并且当证书有效时,返回一个匹配于该证书的 ``User`` 对象,如果证书无效那么返回 ``None`` 。
备注:
译者: