mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 23:16:17 -05:00
Fixing OTP api urls.
This commit is contained in:
parent
d3b985241b
commit
120ce7cd2c
2 changed files with 4 additions and 4 deletions
|
|
@ -228,7 +228,7 @@ export async function refreshChannel(link) {
|
|||
|
||||
export async function encryptOTP(otp, plaintext) {
|
||||
let body = {otp, plaintext};
|
||||
let response = await apiPost(`${OTP_API}:encrypt_otp`, body);
|
||||
let response = await apiPost(`${OTP_API}/encrypt_otp`, body);
|
||||
if (response.status !== 200) {
|
||||
toast({
|
||||
type: 'error',
|
||||
|
|
@ -243,7 +243,7 @@ export async function encryptOTP(otp, plaintext) {
|
|||
|
||||
export async function decryptOTP(otp, ciphertext) {
|
||||
let body = {otp, ciphertext};
|
||||
let response = await apiPost(`${OTP_API}:decrypt_otp`, body);
|
||||
let response = await apiPost(`${OTP_API}/decrypt_otp`, body);
|
||||
if (response.status !== 200) {
|
||||
toast({
|
||||
type: 'error',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue