mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Added auth token to server modal and dns statistics request
This commit is contained in:
parent
360b6865be
commit
97e4fea015
9 changed files with 171 additions and 15 deletions
7
lib/functions/encode_base64.dart
Normal file
7
lib/functions/encode_base64.dart
Normal file
|
@ -0,0 +1,7 @@
|
|||
import 'dart:convert';
|
||||
|
||||
String encodeBase64UserPass(String user, String pass) {
|
||||
String credentials = "$user:$pass";
|
||||
Codec<String, String> stringToBase64 = utf8.fuse(base64);
|
||||
return stringToBase64.encode(credentials);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue