def check_permission(self, perm_name, username): if not self.authenticator.is_logged_in(username): raise NotLoggedInError(username) try: perm_set = self.permissions[perm_name] except KeyError: raise PermissionError("Permission does not exist") else: if username not in perm_set: raise NotPer...
CantRefreshConfCacheFailedGetWebServers Field CantRemoveCurrentWebServer Field CantRestartVirtualServer Field CantSetBothWebTemplateAndConvert Field CantSetBotUniquePermAndConvert Field CantUnextendEarlierVersionVs Field CapacitySettingsOutOfRange Field CasDeployNoFirstMatchCodeGroup Field CasDeployNoTrustNode ...
$op['iperm'] :0;foreach(permission_ids()as$perm => $id) {if($request->request->get('permissions'. $id) =='on') { $new_permissions |=1<< $perm; }else{ $new_permissions &= ~(1<< $perm); } }// Update operator's permissions in the database and in cached// authentication...
auth_token = AuthToken.objects.create(user=user)returnHttpResponse(get_sync_data(auth_token), mimetype='text/plain') 开发者ID:policy-innovations,项目名称:expense-tracker,代码行数:25,代码来源:views.py 示例6: change_password ▲点赞 1▼ defchange_password(request, username):viewUser=get_object_...
CantRefreshConfCacheFailedGetWebServers Field CantRemoveCurrentWebServer Field CantRestartVirtualServer Field CantSetBothWebTemplateAndConvert Field CantSetBotUniquePermAndConvert Field CantUnextendEarlierVersionVs Field CapacitySettingsOutOfRange Field CasDeployNoFirstMatchCodeGroup Field CasDeployNoTrustNode...
Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: Could not load file or assembly 'Microsoft.Owin' Could not load file or assembly ...
$last =COM_checkSpeedlimit('verifytoken');if($last >0) { $retval .= COM_showMessageText(sprintf($LANG04[93], $last, $_CONF['passwordspeedlimit']), $LANG12[26],true,'error'); }else{ $username =isset($_POST['username']) ? $_POST['username'] :''; ...
failedip();if($_G['member_loginperm'] >1) { $loginperm = $_G['member_loginperm'] -1; $validate_error['password'] ='密码错误,您还可以尝试 '. $loginperm .' 次';return$validate_error; }elseif($_G['member_loginperm'] ==-1) { ...
CantRefreshConfCacheFailedGetWebServers Field CantRemoveCurrentWebServer Field CantRestartVirtualServer Field CantSetBothWebTemplateAndConvert Field CantSetBotUniquePermAndConvert Field CantUnextendEarlierVersionVs Field CapacitySettingsOutOfRange Field CasDeployNoFirstMatchCodeGroup Field CasDeployNoTrustNode ...
IPermission thisPerm =this.GetPermission(i);if(thisPerm ==null|| thisPerm.IsSubsetOf(null))continue; IPermission targetPerm = target.GetPermission(i); #if_DEBUG PermissionToken token = (PermissionToken)PermissionToken.s_tokenSet.GetItem( i ); ...