mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 17:29:50 +08:00
GenerateSSHKey with a comment for GitJournal
This commit is contained in:
@ -139,7 +139,7 @@ class OnBoardingSshKeyState extends State<OnBoardingSshKey> {
|
||||
|
||||
void initState() {
|
||||
super.initState();
|
||||
generateSSHKeys().then((String _publicKey) {
|
||||
generateSSHKeys(comment: "GitJournal").then((String _publicKey) {
|
||||
setState(() {
|
||||
print("Changing the state");
|
||||
publicKey = _publicKey;
|
||||
|
@ -29,10 +29,12 @@ Future<String> gitClone(String cloneUrl, String folderName) async {
|
||||
return null;
|
||||
}
|
||||
|
||||
Future<String> generateSSHKeys() async {
|
||||
Future<String> generateSSHKeys({comment: ""}) async {
|
||||
print("generateSSHKeyss");
|
||||
try {
|
||||
String publicKey = await _platform.invokeMethod('generateSSHKeys', {});
|
||||
String publicKey = await _platform.invokeMethod('generateSSHKeys', {
|
||||
comment: comment,
|
||||
});
|
||||
print("Public Key " + publicKey);
|
||||
return publicKey;
|
||||
} on PlatformException catch (e) {
|
||||
|
Reference in New Issue
Block a user