Merge branch 'II'
This commit is contained in:
commit
d749df607f
5 files changed
+9
-7
No files matched your search
@@ -12,7 +12,7 @@ from rest_framework_simplejwt.views import TokenObtainPairView
|
|||||||
|
|
||||||
from django.contrib.auth import get_user_model
|
from django.contrib.auth import get_user_model
|
||||||
User = get_user_model()
|
User = get_user_model()
|
||||||
|
myDEBUG=True
|
||||||
class MyTokenObtainPairSerializer(TokenObtainPairSerializer):
|
class MyTokenObtainPairSerializer(TokenObtainPairSerializer):
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_token(cls, user):
|
def get_token(cls, user):
|
||||||
@@ -42,7 +42,7 @@ class CustomAuth(ModelBackend):
|
|||||||
password = kwargs['password']
|
password = kwargs['password']
|
||||||
status_code=0
|
status_code=0
|
||||||
# !ТУт стучим в AD, потом к Алексею
|
# !ТУт стучим в AD, потом к Алексею
|
||||||
if settings.myDEBUG!=True:
|
if myDEBUG!=True:
|
||||||
resp= requests.post('http://10.252.44.13:8005/getAD', json.dumps({'user': username, 'password':password, 'usercheck': username}))
|
resp= requests.post('http://10.252.44.13:8005/getAD', json.dumps({'user': username, 'password':password, 'usercheck': username}))
|
||||||
|
|
||||||
# if True:
|
# if True:
|
||||||
|
|||||||
BIN
Binary file not shown.
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "front",
|
"name": "front",
|
||||||
"version": "0.0.19",
|
"version": "0.0.21",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "front",
|
"name": "front",
|
||||||
"version": "0.0.19",
|
"version": "0.0.21",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fullcalendar/core": "^6.1.8",
|
"@fullcalendar/core": "^6.1.8",
|
||||||
"@fullcalendar/daygrid": "^6.1.8",
|
"@fullcalendar/daygrid": "^6.1.8",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "front",
|
"name": "front",
|
||||||
"version": "0.0.19",
|
"version": "0.0.21",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
|||||||
@@ -10,11 +10,12 @@
|
|||||||
v-for="(x, i) in newss.result" :key=i>
|
v-for="(x, i) in newss.result" :key=i>
|
||||||
|
|
||||||
<v-list-item class="w-100 pl-4 py-2 pt-3">
|
<v-list-item class="w-100 pl-4 py-2 pt-3">
|
||||||
|
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<v-avatar
|
<v-avatar
|
||||||
|
|
||||||
color="loading_avatar"
|
color="loading_avatar"
|
||||||
:image=accountStore.user.photo></v-avatar>
|
:image="checkremote( `${spravURL}${x.author.login}.jpg`)"></v-avatar>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<v-list-item-title>{{x.author.fio}}</v-list-item-title>
|
<v-list-item-title>{{x.author.fio}}</v-list-item-title>
|
||||||
@@ -430,7 +431,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {checkremote} from '@/utils/universal_functions'
|
||||||
import { ref, watch, onBeforeUpdate, onMounted } from 'vue'
|
import { ref, watch, onBeforeUpdate, onMounted } from 'vue'
|
||||||
import {useAccountStore} from '@/store/AccountStore'
|
import {useAccountStore} from '@/store/AccountStore'
|
||||||
import {getfromserver} from '@/utils/universal_functions'
|
import {getfromserver} from '@/utils/universal_functions'
|
||||||
@@ -564,6 +565,7 @@ export default {
|
|||||||
divs,
|
divs,
|
||||||
page,
|
page,
|
||||||
selecnews,
|
selecnews,
|
||||||
|
checkremote,
|
||||||
route
|
route
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user